mirror of
https://github.com/knex/knex.git
synced 2025-07-08 17:43:24 +00:00
33 lines
802 B
JavaScript
33 lines
802 B
JavaScript
const ColumnCompiler_Oracle = require('../../oracle/schema/oracle-columncompiler');
|
|
const { isObject } = require('../../../util/is');
|
|
|
|
class ColumnCompiler_Oracledb extends ColumnCompiler_Oracle {
|
|
constructor() {
|
|
super(...arguments);
|
|
}
|
|
|
|
datetime(withoutTz) {
|
|
let useTz;
|
|
if (isObject(withoutTz)) {
|
|
({ useTz } = withoutTz);
|
|
} else {
|
|
useTz = !withoutTz;
|
|
}
|
|
return useTz ? 'timestamp with local time zone' : 'timestamp';
|
|
}
|
|
|
|
timestamp(withoutTz) {
|
|
let useTz;
|
|
if (isObject(withoutTz)) {
|
|
({ useTz } = withoutTz);
|
|
} else {
|
|
useTz = !withoutTz;
|
|
}
|
|
return useTz ? 'timestamp with local time zone' : 'timestamp';
|
|
}
|
|
}
|
|
|
|
ColumnCompiler_Oracledb.prototype.time = 'timestamp with local time zone';
|
|
|
|
module.exports = ColumnCompiler_Oracledb;
|