DB: start using ORM
This commit is contained in:
@@ -38,9 +38,11 @@ int main() {
|
||||
}
|
||||
}
|
||||
|
||||
Db = DB.getDB(dbSettings);
|
||||
Db = new DB(dbSettings);
|
||||
Db.connect();
|
||||
Db.runMigrations();
|
||||
|
||||
scope (exit)
|
||||
Db.close();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user