This commit is contained in:
Jan Prochazka
2024-06-01 08:12:18 +02:00
parent 1f75a818c8
commit bbf2e2f7ed

View File

@@ -6,7 +6,7 @@ const spatialTypes = ['GEOGRAPHY'];
/** @type {import('dbgate-types').SqlDialect} */ /** @type {import('dbgate-types').SqlDialect} */
const dialect = { const dialect = {
rangeSelect: false, rangeSelect: true,
limitSelect: false, limitSelect: false,
offsetFetchRangeSyntax: true, offsetFetchRangeSyntax: true,
ilike: true, ilike: true,
@@ -37,49 +37,30 @@ const dialect = {
dropReferencesWhenDropTable: true, dropReferencesWhenDropTable: true,
predefinedDataTypes: [ predefinedDataTypes: [
'bigint', 'VARCHAR2',
'bigserial', 'NUMBER',
'bit', 'DATE',
'varbit', 'CLOB',
'boolean', 'BLOB',
'box', 'INTEGER',
'bytea',
'char(20)', 'BFILE',
'varchar(250)', 'BINARY_DOUBLE',
'cidr', 'BINARY_FLOAT',
'circle', 'CHAR',
'date', 'FLOAT',
'double precision', 'INTERVAL DAY',
'inet', 'INTERVAL YEAR',
'int', 'LONG',
'interval', 'LONG RAW',
'json', 'NCHAR',
'jsonb', 'NCLOB',
'line', 'NVARCHAR2',
'lseg', 'RAW',
'macaddr', 'ROWID',
'macaddr8', 'TIMESTAMP',
'money', 'UROWID',
'numeric(10,2)', // 'XMLTYPE',
'path',
'pg_lsn',
'pg_snapshot',
'point',
'polygon',
'real',
'smallint',
'smallserial',
'serial',
'text',
'time',
'timetz',
'timestamp',
'timestamptz',
'tsquery',
'tsvector',
'txid_snapshot',
'uuid',
'xml',
], ],
createColumnViewExpression(columnName, dataType, source, alias) { createColumnViewExpression(columnName, dataType, source, alias) {