Click or drag to resize
SQLiteDatabaseConnectionBuilderWith Method
Creates a new SQLiteDatabaseConnectionBuilder with the provided parameters.

Namespace: SQLitePCL.pretty
Assembly: SQLitePCL.pretty (in SQLitePCL.pretty.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public SQLiteDatabaseConnectionBuilder With(
	string fileName = null,
	Nullable<int> autoCheckPointCount = null,
	Func<ActionCode, string, string, string, string, AuthorizerReturnCode> authorizer = null,
	Nullable<TimeSpan> busyTimeout = null,
	Func<bool> commitHook = null,
	Nullable<ConnectionFlags> connectionFlags = null,
	Func<bool> progressHandler = null,
	Nullable<int> progressHandlerInterval = null,
	string vfs = null
)

Parameters

fileName (Optional)
Type: SystemString
The filename of the database file.
autoCheckPointCount (Optional)
Type: SystemNullableInt32
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: SystemNullableTimeSpan
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: SystemNullableConnectionFlags
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: SystemNullableInt32
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: SQLiteDatabaseConnectionBuilder
A SQLiteDatabaseConnectionBuilder instance.
See Also