SqliteDriver Type
.NET-side ISqliteDriver implementation backed by Microsoft.Data.Sqlite.
Construction is private; obtain instances through the named-parameter factory members
(create, createFromFile, createInMemory, wrapConnection) or via the
convenience Sqlite module. The factories all open the underlying
SqliteConnection if it is not already open and enable the
foreign_keys pragma — SQLite does not enforce foreign keys by default.
The driver tracks whether it owns the connection. Connections opened by a factory are owned
and disposed when the driver is disposed; connections passed to wrapConnection are
borrowed and outlive the driver.
Instance members
| Instance member |
Description
|
|
The underlying SqliteConnection, exposed for advanced scenarios such as transactions or backup.
|
Static members
| Static member |
Description
|
Full Usage:
SqliteDriver.create ConnectionString
Parameters:
string
-
An ADO.NET connection string for Microsoft.Data.Sqlite.
Returns: SqliteDriver
|
Creates a driver from a raw ADO.NET connection string and opens the connection. The resulting driver owns the connection.
|
Full Usage:
SqliteDriver.createFromFile Path
Parameters:
string
-
File-system path to the SQLite database file.
Returns: SqliteDriver
|
Creates a driver pointing at a database file. Equivalent to
|
|
Creates a driver backed by an in-memory database (
|
Full Usage:
SqliteDriver.wrapConnection Connection
Parameters:
SqliteConnection
-
The connection to wrap.
Returns: SqliteDriver
|
Wraps an existing SqliteConnection. Opens the connection if it is not already open. The resulting driver does not own the connection — disposing the driver will not close it.
|
ProcessCore