initialize

fun initialize(configure: ConfigurationScope.() -> Unit? = null): SQLite(source)

Initializes SQLite and returns an SQLite instance used to initiate connections. SQLite global options can be configured by supplying a value to configure.

When the returned instance is no longer needed, then SQLite.close must be called and this factory method can be called again.

Only a single instance of SQLite exists at a time.

Throws

if a previously returned instance of SQLite was not closed.

if an operation fails while creating and configuring SQLite.