DBConnection implementation backed by a local turso database.
Each pooled connection opens its own database handle and connection via the native layer. Connection options:
:database— path to the local database file (required).":memory:"opens an in-memory database.:remote_url— URL of a Turso Cloud database to sync with (optional, requires:auth_token).:auth_token— auth token for the remote database, either a string or a zero-arity function returning one (optional, requires:remote_url).
Summary
Types
@type t() :: %Turso.Connection{ conn: reference(), db: reference(), status: :idle | :transaction, sync_db: reference() | nil, transaction_depth: non_neg_integer() }