remove db

Former-commit-id: be53971aae9074a8d8a125103b83b03990b3916f
This commit is contained in:
Benjamin Kyd
2022-04-08 15:46:36 +01:00
parent c2794be864
commit bf767b8cc4
4 changed files with 7 additions and 19 deletions

View File

@@ -1,5 +1,4 @@
const Logger = require('../logger.js');
const EntityFramework = require('./psql-entity-framework/entity-relationships.js');
const { Client } = require('pg');
@@ -43,21 +42,10 @@ class Database {
});
await con;
this.ORM = new EntityFramework(this.connection);
return this.connection;
}
async ORMReady() {
await this.ORM.syncModels();
}
get getORM() {
return this.ORM;
}
}
module.exports = {
IDatabase: Database,
DataTypes: require('./psql-entity-framework/types.js'),
DataConstraints: require('./psql-entity-framework/relationships-constraints.js'),
};