action/cloudflare/turso_shared library

Classes

TursoSharedBinding
Physical database and group of the shared Turso database for one environment.
TursoSharedConfig
Resolved cloudflare.turso.shared configuration.

Constants

tursoManagedStatePath → const String
Path of the Turso state managed by Katana (git-ignored).
tursoServerAccessTokenSecret → const String
Name of the region Worker secret that marks trusted server requests.
tursoSharedSchemaManifestPath → const String
Path of the schema manifest served by the region Worker for the shared Turso database.

Functions

addTursoReservedDatabase(String call, String logicalName) → String
Adds logicalName to reservedDatabases of a turso.Functions.turso / turso.Functions.tursoToken call call (whose argument is an object literal).
loadOrCreateTursoServerAccessToken({required Map secrets, required String flavor, String generate()?}) → Future<String>
Loads or generates the server access token of the shared Turso database for flavor.
readTursoSharedAppName() → String
Reads the package name from pubspec.yaml in the current directory.
resolveTursoSharedConfig({required Map shared, required String appName, FlavorContext? flavorContext}) → TursoSharedConfig
Resolves cloudflare.turso.shared from shared.
tursoCompatibleSchemaManifest(Map schema, {required String columnType(String type), bool include(String database)?}) → Map<String, dynamic>
Converts the common schema schema into the Turso schema manifest format, keeping only the tables whose database satisfies include.
updateTursoSharedRegionSource(String source, {required TursoSharedConfig config, required bool useSchemaManifest}) → String?
Registers turso.Functions.turso for the shared database in the region Worker source.