We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d0dfb commit 87c0d1dCopy full SHA for 87c0d1d
example/lib/main.dart
@@ -221,14 +221,18 @@ class _HomePageState extends State<HomePage> {
221
'db.delete()',
222
);
223
224
- await execute(() => db.transaction((txn) async {
225
- txn.query('DEFINE TABLE test SCHEMAFULL;');
226
- txn.query('DEFINE FIELD name ON test TYPE string;');
227
- txn.query(
228
- r'CREATE test SET name = $name;',
229
- bindings: {'name': 'John'},
230
- );
231
- }));
+ await execute(
+ () => db.transaction(
+ (txn) async {
+ txn.query('DEFINE TABLE test SCHEMAFULL;');
+ txn.query('DEFINE FIELD name ON test TYPE string;');
+ txn.query(
+ r'CREATE test SET name = $name;',
+ bindings: {'name': 'John'},
232
+ );
233
+ },
234
+ ),
235
+ 'db.transaction()');
236
}
237
238
@override
0 commit comments