1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 13:29:22 +00:00

Can get instance of database connection from anywhere in the application

This commit is contained in:
Pierre HUBERT 2019-11-23 18:08:43 +01:00
parent 190e047bd8
commit 49ec5a7edd

View File

@ -45,6 +45,13 @@ export class DatabaseHelper {
}) })
} }
/**
* Get an instance of the connection to the database
*/
static getConnection() : Connection {
return this.connection;
}
/** /**
* Query the database (SELECT) * Query the database (SELECT)
* *