mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-24 03:34:18 +01:00
example
This commit is contained in:
9
bindings/dart/example/lib/bootstrap.dart
Normal file
9
bindings/dart/example/lib/bootstrap.dart
Normal 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)",
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user