init method
项目进行初始化
Implementation
Future<void> init([String? dbName]) async {
var databasesPath = await getDatabasesPath();
String path = join(databasesPath, dbName ?? getDbName());
_database = await openDatabase(
path,
version: getDbVersion(),
onCreate: onCreate,
onUpgrade: onUpgrade,
);
BaseDbManager.initial(this);
}