Mono.Data.Sqlite.SqliteConnection Class
SQLite implentation of DbConnection.

See Also: SqliteConnection Members

Syntax

public sealed class SqliteConnection : System.Data.Common.DbConnection, ICloneable

Remarks

The SqliteConnection.ConnectionString property of the SqliteConnection class can contain the following parameter(s), delimited with a semi-colon:
ParameterValuesRequiredDefault
Data Source{filename}Y
Version3N3
UseUTF16Encoding True False NFalse
DateTimeFormat Ticks - Use DateTime.Ticks ISO8601 - Use ISO8601 DateTime formatNISO8601
BinaryGUID True - Store GUID columns in binary form False - Store GUID columns as text NTrue
Cache Size{size in bytes}N2000
Synchronous Normal - Normal file flushing behavior Full - Full flushing after all writes Off - Underlying OS flushes I/O's NNormal
Page Size{size in bytes}N1024
Password{password}N
Enlist Y - Automatically enlist in distributed transactions N - No automatic enlistment NY
Pooling True - Use connection pooling False - Do not use connection pooling NFalse
FailIfMissing True - Don't create the database if it does not exist, throw an error instead False - Automatically create the database if it does not exist NFalse
Max Page Count{size in pages} - Limits the maximum number of pages (limits the size) of the databaseN0
Legacy Format True - Use the more compatible legacy 3.x database format False - Use the newer 3.3x database format which compresses numbers more effectively NFalse
Default Timeout{time in seconds}The default command timeoutN30
Journal Mode Delete - Delete the journal file after a commit Persist - Zero out and leave the journal file on disk after a commit Off - Disable the rollback journal entirely NDelete
Read Only True - Open the database for read only access False - Open the database for normal read/write access NFalse
Max Pool SizeThe maximum number of connections for the given connection string that can be in the connection poolN100
Default IsolationLevelThe default transaciton isolation levelNSerializable
FileProtectionCompleteiOS only - Sets the SQLite file protection level to Complete, requires the "DataProtectionClass" entitlement in your application. The data will only be available when the device is unlocked, and the safety is only as gooas the device passcode.NFalse
FileProtectionCompleteUnlessOpeniOS only - Sets the SQLite file protection level to CompleteUNlessOpen, requries the "DataProtectionClass" entitlement in your application. You can access the data even if the device is locked and you can also create these files if the device is unlocked.NFalse
FileProtectionCompleteUntilFirstUserAuthenticationiOS only - Sets the SQLite file protection level to CompleteUnlessOpen, requries the "DataProtectionClass" entitlement in your application.NFalse
FileProtectioNoneiOS only - forces the file to not have any file protection. Useful if the containing directory has been flagged to be protected, this overrides the behavior.NFalse

Requirements

Namespace: Mono.Data.Sqlite
Assembly: Mono.Data.Sqlite (in Mono.Data.Sqlite.dll)
Assembly Versions: 4.0.0.0