mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
Improvements to query builder
This commit is contained in:
7
src/main/models/Generic.js
Normal file
7
src/main/models/Generic.js
Normal file
@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
export default class {
|
||||
static async raw (connection, query, database) {
|
||||
if (database) await connection.raw(`USE \`${database}\``);
|
||||
return connection.raw(query);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user