2014-09-01 17:18:45 +02:00
|
|
|
'use strict';
|
|
|
|
|
2021-03-08 07:16:07 -05:00
|
|
|
const { isOracle } = require('../util/db-helpers');
|
2020-03-08 19:48:23 -04:00
|
|
|
|
2020-04-19 00:40:23 +02:00
|
|
|
module.exports = function (knex) {
|
|
|
|
describe(knex.client.dialect + ' | ' + knex.client.driverName, function () {
|
2018-08-29 17:13:16 +02:00
|
|
|
this.client = knex.client.dialect;
|
2015-04-24 10:10:34 -04:00
|
|
|
this.driverName = knex.client.driverName;
|
2013-12-27 14:44:21 -05:00
|
|
|
|
2020-04-19 00:40:23 +02:00
|
|
|
after(function () {
|
2018-07-09 08:10:34 -04:00
|
|
|
return knex.destroy();
|
2018-04-05 01:19:08 +03:00
|
|
|
});
|
2016-09-13 18:12:23 -04:00
|
|
|
|
2021-03-08 07:16:07 -05:00
|
|
|
if (isOracle(knex)) {
|
2020-12-22 10:28:58 +02:00
|
|
|
describe('Oracledb driver tests', function () {
|
|
|
|
this.timeout(process.env.KNEX_TEST_TIMEOUT || 5000);
|
|
|
|
require('./dialects/oracledb');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-05-05 19:10:50 +02:00
|
|
|
require('./migrate/migration-integration-tests')(knex);
|
2018-04-05 01:19:08 +03:00
|
|
|
|
2014-07-21 18:38:40 -04:00
|
|
|
require('./seed')(knex);
|
2020-12-28 16:55:08 +02:00
|
|
|
require('./query/aggregate')(knex);
|
|
|
|
require('./execution/transaction')(knex);
|
|
|
|
require('./query/deletes')(knex);
|
|
|
|
require('./query/trigger-inserts')(knex);
|
|
|
|
require('./query/trigger-updates')(knex);
|
|
|
|
require('./query/trigger-deletes')(knex);
|
2016-05-29 18:16:32 +02:00
|
|
|
require('./datatype/bigint')(knex);
|
2020-09-30 09:05:16 +02:00
|
|
|
require('./datatype/decimal')(knex);
|
|
|
|
require('./datatype/double')(knex);
|
2018-07-02 22:52:32 +02:00
|
|
|
});
|
2014-09-01 17:18:45 +02:00
|
|
|
};
|