Files
turso/bindings/dart/example/lib/bootstrap.dart
Andika Tanuwijaya af99558307 bindings/dart: naming
2025-07-02 18:43:20 +07:00

10 lines
351 B
Dart

import 'package:turso_dart/turso_dart.dart';
Future<void> bootstrapDatabase(TursoClient client, {bool sync = false}) async {
await client.connect();
await client.execute("drop table if exists tasks");
await client.execute(
"create table if not exists tasks (id integer primary key, title text, description text, completed integer)",
);
}