TursoBootstrap

A class that is being used to initialize the necessary settings for the SqliteConnection object.

This class initializes the necessary dependencies for the Turso.Data.Sqlite.Provider SqliteConnection (Turso.Data.Sqlite.SqliteConnection) object — the TursoDbSetting, TursoDbHelper and TursoStatementBuilder — and registers them via their respective mappers.

It wires up TursoDbTypeNameToClientTypeResolver as the type resolver, and constructs the TursoDbSetting with isExecuteReaderDisposable set to false.

The connection type is named SqliteConnection in every SQLite driver, but each lives in its own namespace (Turso.Data.Sqlite here). The mappers are keyed by the full type, so this provider can be registered side by side with the other SQLite providers without conflict.

Properties

Name Description
IsInitialized Returns true once the initialization has completed.

Usability

Call TursoGlobalConfiguration.UseTurso() during application start-up; it triggers this class internally.

GlobalConfiguration
    .Setup()
    .UseTurso();

Initialization is a one-time, idempotent operation — calling UseTurso() more than once has no additional effect.