Property | Type | Description | |
---|---|---|---|
BeginTransaction | |||
BeginTransaction | |||
CommitCallback | int | ||
CompressFile | void | ||
DecompressFile | void | ||
ExpandFileName | string | ||
FindKey | string | ||
MapMonoKeyword | void | ||
MapMonoUriPath | string | ||
MapUriPath | string | ||
OnStateChange | void | ||
ParseConnectionString | string>.SortedList | ||
RollbackCallback | void | ||
Schema_Catalogs | |||
Schema_Columns | |||
Schema_DataSourceInformation | |||
Schema_DataTypes | |||
Schema_ForeignKeys | |||
Schema_IndexColumns | |||
Schema_Indexes | |||
Schema_MetaDataCollections | |||
Schema_ReservedWords | |||
Schema_Tables | |||
Schema_Triggers | |||
Schema_ViewColumns | |||
Schema_Views | |||
UpdateCallback | void |
Method | Description | |
---|---|---|
BeginTransaction ( ) : |
Creates a new SqliteTransaction if one isn't already active on the connection.
|
|
BeginTransaction ( IsolationLevel isolationLevel ) : |
Creates a new SqliteTransaction if one isn't already active on the connection. Unspecified will use the default isolation level specified in the connection string. If no isolation level is specified in the connection string, Serializable is used. Serializable transactions are the default. In this mode, the engine gets an immediate lock on the database, and no other threads may begin a transaction. Other threads may read from the database, but not write. With a ReadCommitted isolation level, locks are deferred and elevated as needed. It is possible for multiple threads to start a transaction in ReadCommitted mode, but if a thread attempts to commit a transaction while another thread has a ReadCommitted lock, it may timeout or cause a deadlock on both threads until both threads' CommandTimeout's are reached. |
|
ChangeDatabase ( string databaseName ) : void |
Not implemented
|
|
ChangePassword ( byte newPassword ) : void |
Change the password (or assign a password) to an open database. No readers or writers may be active for this process. The database must already be open and if it already was password protected, the existing password must already have been supplied. |
|
ChangePassword ( string newPassword ) : void |
Change the password (or assign a password) to an open database. No readers or writers may be active for this process. The database must already be open and if it already was password protected, the existing password must already have been supplied. |
|
ClearAllPools ( ) : void |
Clears all connection pools. Any active connections will be discarded instead of sent to the pool when they are closed.
|
|
ClearPool ( |
Clears the connection pool associated with the connection. Any other active connections using the same database file will be discarded instead of returned to the pool when they are closed.
|
|
Clone ( ) : object |
Creates a clone of the connection. All attached databases and user-defined functions are cloned. If the existing connection is open, the cloned connection will also be opened.
|
|
Close ( ) : void |
When the database connection is closed, all commands linked to this connection are automatically reset.
|
|
CreateCommand ( ) : |
Create a new SqliteCommand and associate it with this connection.
|
|
CreateFile ( string databaseFileName ) : void |
Creates a database file. This just creates a zero-byte file which SQLite will turn into a database when the file is opened properly.
|
|
EnlistTransaction ( System transaction ) : void |
Manual distributed transaction enlistment support
|
|
GetSchema ( ) : |
Returns the MetaDataCollections schema
|
|
GetSchema ( string collectionName ) : |
Returns schema information of the specified collection
|
|
GetSchema ( string collectionName, string restrictionValues ) : |
Retrieves schema information using the specified constraint(s) for the specified collection
|
|
Open ( ) : void |
Opens the connection using the parameters found in the
|
|
SetPassword ( byte databasePassword ) : void |
Sets the password for a password-protected database. A password-protected database is unusable for any operation until the password has been set.
|
|
SetPassword ( string databasePassword ) : void |
Sets the password for a password-protected database. A password-protected database is unusable for any operation until the password has been set.
|
|
SqliteConnection ( ) : System |
Default constructor
|
|
SqliteConnection ( |
Clones the settings and connection string from an existing connection. If the existing connection is already open, this function will open its own connection, enumerate any attached databases of the original connection, and automatically attach to them.
|
|
SqliteConnection ( string connectionString ) : System |
Initializes the connection with the specified connection string
|
Method | Description | |
---|---|---|
BeginDbTransaction ( IsolationLevel isolationLevel ) : |
Forwards to the local BeginTransaction() function
|
|
CreateDbCommand ( ) : |
Forwards to the local CreateCommand() function
|
|
Dispose ( bool disposing ) : void |
Disposes of the SqliteConnection, closing it if it is active.
|
Method | Description | |
---|---|---|
BeginTransaction ( IsolationLevel isolationLevel, bool deferredLock ) : |
||
BeginTransaction ( bool deferredLock ) : |
||
CommitCallback ( |
||
CompressFile ( string databaseFileName ) : void | ||
DecompressFile ( string databaseFileName ) : void | ||
ExpandFileName ( string sourceFile ) : string |
Expand the filename of the data source, resolving the |DataDirectory| macro as appropriate.
|
|
FindKey ( string>.SortedList |
Looks for a key in the array of key/values of the parameter string. If not found, return the specified default value
|
|
MapMonoKeyword ( string arPiece, string>.SortedList |
Maps mono-specific connection string keywords to the standard ones
|
|
MapMonoUriPath ( string path ) : string | ||
MapUriPath ( string path ) : string | ||
OnStateChange ( ConnectionState newState ) : void |
Raises the state change event when the state of the connection changes
|
|
ParseConnectionString ( string connectionString ) : string>.SortedList |
Parses the connection string into component parts
|
|
RollbackCallback ( |
||
Schema_Catalogs ( string strCatalog ) : |
Retrieves catalog (attached databases) schema information for the database
|
|
Schema_Columns ( string strCatalog, string strTable, string strColumn ) : |
Build a Columns schema
|
|
Schema_DataSourceInformation ( ) : |
Builds a DataSourceInformation datatable
|
|
Schema_DataTypes ( ) : |
||
Schema_ForeignKeys ( string strCatalog, string strTable, string strKeyName ) : |
Retrieves foreign key information from the specified set of filters
|
|
Schema_IndexColumns ( string strCatalog, string strTable, string strIndex, string strColumn ) : |
Returns the base column information for indexes in a database
|
|
Schema_Indexes ( string strCatalog, string strTable, string strIndex ) : |
Returns index information for the given database and catalog
|
|
Schema_MetaDataCollections ( ) : |
Builds a MetaDataCollections schema datatable
|
|
Schema_ReservedWords ( ) : |
||
Schema_Tables ( string strCatalog, string strTable, string strType ) : |
Retrieves table schema information for the database and catalog
|
|
Schema_Triggers ( string catalog, string table, string triggerName ) : |
||
Schema_ViewColumns ( string strCatalog, string strView, string strColumn ) : |
Returns detailed column information for a specified view
|
|
Schema_Views ( string strCatalog, string strView ) : |
Retrieves view schema information for the database
|
|
UpdateCallback ( |
protected BeginDbTransaction ( IsolationLevel isolationLevel ) : |
||
isolationLevel | IsolationLevel | Supported isolation levels are Unspecified, Serializable, and ReadCommitted |
return |
public BeginTransaction ( ) : |
||
return |
public BeginTransaction ( IsolationLevel isolationLevel ) : |
||
isolationLevel | IsolationLevel | Supported isolation levels are Serializable, ReadCommitted and Unspecified. |
return |
public ChangeDatabase ( string databaseName ) : void | ||
databaseName | string | |
return | void |
public ChangePassword ( byte newPassword ) : void | ||
newPassword | byte | The new password to assign to the database |
return | void |
public ChangePassword ( string newPassword ) : void | ||
newPassword | string | The new password to assign to the database |
return | void |
public static ClearPool ( |
||
connection | ||
return | void |
protected CreateDbCommand ( ) : |
||
return |
static public CreateFile ( string databaseFileName ) : void | ||
databaseFileName | string | The file to create |
return | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True if the connection is being explicitly closed. |
return | void |
public EnlistTransaction ( System transaction ) : void | ||
transaction | System | The distributed transaction to enlist in |
return | void |
public GetSchema ( string collectionName ) : |
||
collectionName | string | The schema collection to retrieve |
return |
public GetSchema ( string collectionName, string restrictionValues ) : |
||
collectionName | string | The collection to retrieve |
restrictionValues | string | The restrictions to impose |
return |
public SetPassword ( byte databasePassword ) : void | ||
databasePassword | byte | The password for the database |
return | void |
public SetPassword ( string databasePassword ) : void | ||
databasePassword | string | The password for the database |
return | void |
public SqliteConnection ( |
||
connection | ||
return | System |
public SqliteConnection ( string connectionString ) : System | ||
connectionString | string | The connection string to use on the connection |
return | System |