1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

Removed knex

This commit is contained in:
2020-06-07 14:38:38 +02:00
parent 268688cdb8
commit 4e508061fd
13 changed files with 421 additions and 362 deletions

View File

@ -1,16 +1,10 @@
'use strict';
export default class {
static testConnection (connection) {
return connection('TABLES')
.select({ result: 1 })
.withSchema('information_schema');
return connection.raw('SELECT 1+1');
}
static getStructure (connection) {
return connection('TABLES')
.select('*')
.withSchema('information_schema')
.orderBy(['TABLE_SCHEMA', 'TABLE_NAME'], 'asc');
return connection.raw('SELECT * FROM information_schema.TABLES ORDER BY TABLE_SCHEMA, TABLE_NAME ASC');
}
}