close

abstract fun close(throwOnError: Boolean)

Close Database

Close the underlying connection backing this database, and persist the current database data if so configured via the path provided to the database constructor.

After persisting the database, close all associated resources, including prepared statements, transactions, and other ephemeral objects.

For more information about close and free behavior, see Managed Resources in the main database object docs.

Parameters

throwOnError

Whether to throw an exception if an error occurs during close.


open override fun close()