TursoPlatformApi constructor

TursoPlatformApi({
  1. required String token,
  2. Uri? baseUrl,
  3. HttpClient? client,
})

Minimal client of the Turso Platform API used by katana apply.

baseUrl can be replaced (e.g. with a loopback server in tests).

katana applyで使用するTurso Platform APIの最小限のクライアント。

baseUrlは差し替え可能です(テストでのループバックサーバーなど)。

Implementation

TursoPlatformApi({
  required this.token,
  Uri? baseUrl,
  HttpClient? client,
})  : baseUrl = baseUrl ?? Uri.parse(tursoPlatformApiDefaultBaseUrl),
      _client = client ?? HttpClient();