mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
removed "database connection id"
This commit is contained in:
parent
90eacdfcea
commit
f440ea4404
@ -3,11 +3,6 @@
|
||||
*/
|
||||
export interface DatabaseConnection {
|
||||
|
||||
/**
|
||||
* Id of the connection.
|
||||
*/
|
||||
id: number;
|
||||
|
||||
/**
|
||||
* Native driver's connection object.
|
||||
*/
|
||||
|
||||
@ -97,7 +97,6 @@ export class MongoDriver implements Driver {
|
||||
|
||||
this.databaseConnection = dbConnection;
|
||||
const databaseConnection: DatabaseConnection = {
|
||||
id: 1,
|
||||
connection: dbConnection
|
||||
};
|
||||
this.queryRunner = new MongoQueryRunner(this.connection, databaseConnection);
|
||||
|
||||
@ -296,7 +296,6 @@ export class MysqlDriver implements Driver {
|
||||
if (!dbConnection) {
|
||||
const driver = this;
|
||||
dbConnection = {
|
||||
id: this.databaseConnections.length,
|
||||
connection: connection,
|
||||
releaseCallback: function() {
|
||||
if (driver.pool) {
|
||||
|
||||
@ -312,7 +312,6 @@ export class OracleDriver implements Driver {
|
||||
let dbConnection = this.databaseConnectionPool.find(dbConnection => dbConnection.connection === connection);
|
||||
if (!dbConnection) {
|
||||
dbConnection = {
|
||||
id: this.databaseConnectionPool.length,
|
||||
connection: connection,
|
||||
};
|
||||
dbConnection.releaseCallback = () => {
|
||||
|
||||
@ -334,7 +334,6 @@ export class PostgresDriver implements Driver {
|
||||
let dbConnection = this.databaseConnectionPool.find(dbConnection => dbConnection.connection === connection);
|
||||
if (!dbConnection) {
|
||||
dbConnection = {
|
||||
id: this.databaseConnectionPool.length,
|
||||
connection: connection
|
||||
};
|
||||
this.databaseConnectionPool.push(dbConnection);
|
||||
|
||||
@ -124,7 +124,6 @@ export class SqliteDriver implements Driver {
|
||||
return fail(err);
|
||||
|
||||
this.databaseConnection = {
|
||||
id: 1,
|
||||
connection: connection
|
||||
};
|
||||
|
||||
|
||||
@ -314,7 +314,6 @@ export class SqlServerDriver implements Driver {
|
||||
|
||||
return new Promise((ok, fail) => {
|
||||
let dbConnection: DatabaseConnection = {
|
||||
id: this.databaseConnectionPool.length,
|
||||
connection: this.connectionPool
|
||||
};
|
||||
dbConnection.releaseCallback = () => {
|
||||
|
||||
@ -136,7 +136,6 @@ export class WebsqlDriver implements Driver {
|
||||
options.size,
|
||||
);
|
||||
this.databaseConnection = {
|
||||
id: 1,
|
||||
connection: connection
|
||||
};
|
||||
ok();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user