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:
parent
190e047bd8
commit
49ec5a7edd
@ -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)
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user