MomentumSqlite constructor

MomentumSqlite({
  1. required String? dbName,
})

Implementation

MomentumSqlite({required this.dbName}){
  print('Using sqlite3 ${sqlite3.version}');
  final DB = sqlite3.open(File(Directory.current.path+'/db/sqlite3/$dbName.db').create(recursive: true).toString());
  print('[ Connection to sqlite3 database $dbName.db ]');
  _db = DB;
}