create method

  1. @override
Future create({
  1. Database? database,
})
override

Implementation

@override
Future create({Database? database}) async {
  final Database db = database != null ? database : this.database;

  await db.transaction((txn) async {
    var batch = txn.batch();

    this.createQuery.split(';').forEach((sql) {
      batch.execute(sql);
    });

    await batch.commit();
  });

  return 1;
}