mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-23 03:04:19 +01:00
10 lines
352 B
Dart
10 lines
352 B
Dart
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)",
|
|
);
|
|
}
|