This commit is contained in:
Andika Tanuwijaya
2025-07-02 00:39:36 +07:00
parent e37388a6c9
commit 578c7ae53a
20 changed files with 575 additions and 103 deletions

View File

@@ -0,0 +1,9 @@
import 'package:turso_dart/turso_dart.dart';
Future<void> bootstrapDatabase(LibsqlClient 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)",
);
}