TursoGlobalConfiguration

A class that is being used to initialize the necessary settings for the Turso data provider.

This class exposes the UseTurso() extension method of GlobalConfiguration, which wires up all the necessary dependencies for Turso (via TursoBootstrap).

Usability

GlobalConfiguration
    .Setup()
    .UseTurso();

Call this once during application start-up, before opening any SqliteConnection from Turso.Data.Sqlite.

UseTurso() does not change the process-wide conversion option. When the entity types differ from the driver’s SQLite storage types (for example decimal, boolean or date properties), opt into automatic conversion explicitly:

GlobalConfiguration
    .Setup(new()
    {
        ConversionType = RepoDb.Enumerations.ConversionType.Automatic
    })
    .UseTurso();