mirrored_repositories/flutter-app-example/lib
import 'package:bytebank/database/dao/contact_dao.dart';
import 'package:bytebank/database/dao/transaction_dao.dart';
import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart';

Future<Database> getDatabase() async {
  final String dbPath = await getDatabasesPath();
  final String path = join(dbPath, 'bytebank.db');
  return openDatabase(
    path,
    onCreate: (db, version) {
      db.execute(ContactDAO.tableSQl);
      db.execute(TransactionDAO.tableSQl);
    },
    version: 1,
    //onDowngrade: onDatabaseDowngradeDelete,
  );
}
