SQLiteDatabaseConnectionBuilderCreate Method |
Namespace: SQLitePCL.prettyAssembly: SQLitePCL.pretty (in SQLitePCL.pretty.dll) Version: 1.0.0.0 (1.0.0)
Syntax public static SQLiteDatabaseConnectionBuilder Create(
string fileName,
int autoCheckPointCount = 0,
Func<ActionCode, string, string, string, string, AuthorizerReturnCode> authorizer = null,
TimeSpan busyTimeout = null,
Func<bool> commitHook = null,
ConnectionFlags connectionFlags = ConnectionFlags.ReadWrite|ConnectionFlags.Create,
Func<bool> progressHandler = null,
int progressHandlerInterval = 100,
string vfs = null
)
static member Create :
fileName : string *
?autoCheckPointCount : int *
?authorizer : Func<ActionCode, string, string, string, string, AuthorizerReturnCode> *
?busyTimeout : TimeSpan *
?commitHook : Func<bool> *
?connectionFlags : ConnectionFlags *
?progressHandler : Func<bool> *
?progressHandlerInterval : int *
?vfs : string
(* Defaults:
let _autoCheckPointCount = defaultArg autoCheckPointCount 0
let _authorizer = defaultArg authorizer null
let _busyTimeout = defaultArg busyTimeout null
let _commitHook = defaultArg commitHook null
let _connectionFlags = defaultArg connectionFlags ConnectionFlags.ReadWrite|ConnectionFlags.Create
let _progressHandler = defaultArg progressHandler null
let _progressHandlerInterval = defaultArg progressHandlerInterval 100
let _vfs = defaultArg vfs null
*)
-> SQLiteDatabaseConnectionBuilder
Parameters
- fileName
- Type: SystemString
The filename of the database file. - autoCheckPointCount (Optional)
- Type: SystemInt32
The number of frames in the write-ahead log file that causes any database on
database connection D to automatically checkpoint.
See: https://www.sqlite.org/c3ref/wal_autocheckpoint.html - authorizer (Optional)
- Type: SystemFuncActionCode, String, String, String, String, AuthorizerReturnCode
The authorizer callback used by created SQLiteDatabaseConnection instances.
See: https://www.sqlite.org/c3ref/set_authorizer.html - busyTimeout (Optional)
- Type: SystemTimeSpan
The specified amount of time a connection sleeps when a table is locked.
See: https://www.sqlite.org/c3ref/busy_timeout.html - commitHook (Optional)
- Type: SystemFuncBoolean
A callback function to be invoked whenever a transaction is committed.
See: https://www.sqlite.org/c3ref/commit_hook.html - connectionFlags (Optional)
- Type: SQLitePCL.prettyConnectionFlags
The ConnectionFlags used when creating SQLiteDatabaseConnection instances.
- progressHandler (Optional)
- Type: SystemFuncBoolean
A callback function to be invoked periodically during long running calls to the database connection.
See: https://www.sqlite.org/c3ref/progress_handler.html - progressHandlerInterval (Optional)
- Type: SystemInt32
The approximate number of virtual machine instructions that are evaluated between
successive invocations of the progressHandler callback.
See: https://www.sqlite.org/c3ref/progress_handler.html - vfs (Optional)
- Type: SystemString
Return Value
Type:
SQLiteDatabaseConnectionBuilderA
SQLiteDatabaseConnectionBuilder instance.
See Also