SQLiteConnection is a single connection to sqlite database. It wraps the sqlite3*
database handle from SQLite C Interface.
Unless otherwise specified, methods are confined to the thread that was used to open the connection.
This means that an exception will be thrown if you try to access the method from a different thread.
SQLiteConnection should be expicitly closed before the object is disposed. Failing to do so
may result in unpredictable behavior from SQLite.
Once closed with #dispose(), the connection cannot be reused and the instance
should be forgotten.
Several connections to the same database can be opened by creating several instances of SQLiteConnection.
SQLiteConnection tracks all statements it had prepared. When connection is disposed,
it first tries to dispose all prepared statements. If there's an active transaction, it is rolled
back.
SQLiteConnection is a single connection to sqlite database. It wraps the
sqlite3*
database handle from SQLite C Interface.Unless otherwise specified, methods are confined to the thread that was used to open the connection. This means that an exception will be thrown if you try to access the method from a different thread.
SQLiteConnection should be expicitly closed before the object is disposed. Failing to do so may result in unpredictable behavior from SQLite.
Once closed with
#dispose()
, the connection cannot be reused and the instance should be forgotten.Several connections to the same database can be opened by creating several instances of SQLiteConnection.
SQLiteConnection tracks all statements it had prepared. When connection is disposed, it first tries to dispose all prepared statements. If there's an active transaction, it is rolled back.
sqlite3*
SQLiteStatement