Skip to content

Commit

Permalink
Merge pull request #4091 from szarnyasg/dart-client
Browse files Browse the repository at this point in the history
Update Dart page
  • Loading branch information
szarnyasg authored Nov 19, 2024
2 parents d3da24f + fffbea7 commit 40669b9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/api/dart.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import 'package:dart_duckdb/dart_duckdb.dart';
void main() {
final db = duckdb.open(":memory:");
final connection = db.connect();
final connection = duckdb.connect(db);
connection.execute('''
CREATE TABLE users (id INTEGER, name VARCHAR, age INTEGER);
Expand All @@ -68,8 +68,8 @@ void main() {
print(row);
}
connection.close();
db.close();
connection.dispose();
db.dispose();
}
```

Expand All @@ -80,12 +80,12 @@ import 'package:dart_duckdb/dart_duckdb.dart';
void main() {
final db = duckdb.open(":memory:");
final connection = db.connect();
final connection = duckdb.connect(db);
await Isolate.spawn(backgroundTask, db.transferrable);
connection.close();
db.close();
connection.dispose();
db.dispose();
}
void backgroundTask(TransferableDatabase transferableDb) {
Expand Down

0 comments on commit 40669b9

Please sign in to comment.