action/cloudflare/turso_shared
library
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.