action/cloudflare/turso_platform_api library

Classes

TursoDatabaseInfo
Database information returned by the Turso Platform API.
TursoGroupInfo
Group information returned by the Turso Platform API.
TursoPlatformApi
Minimal client of the Turso Platform API used by katana apply.

Constants

tursoPlatformApiDefaultBaseUrl → const String
Default endpoint of the Turso Platform API.

Functions

ensureTursoGroups({required TursoPlatformApi api, required String organization, required List<Map<String, dynamic>> groups}) → Future<List<String>>
Creates Turso groups that have a location in groups but do not exist in organization.
ensureTursoSharedDatabase({required TursoPlatformApi api, required String organization, required String database, required String group}) → Future<bool>
Creates the shared Turso database database in group if it does not exist.

Exceptions / Errors

TursoPlatformApiException
Error response of the Turso Platform API.