remove db
Former-commit-id: be53971aae9074a8d8a125103b83b03990b3916f
This commit is contained in:
@@ -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'),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user