mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 05:46:01 +00:00
refactor:dialect.nosql=>driver.databaseEngineTypes
This commit is contained in:
@@ -16,7 +16,6 @@ const dialect = {
|
||||
offsetFetchRangeSyntax: true,
|
||||
stringEscapeChar: "'",
|
||||
fallbackDataType: 'nvarchar(max)',
|
||||
nosql: true,
|
||||
quoteIdentifier(s) {
|
||||
return `[${s}]`;
|
||||
},
|
||||
@@ -26,6 +25,7 @@ const dialect = {
|
||||
const driver = {
|
||||
...driverBase,
|
||||
dumperClass: Dumper,
|
||||
databaseEngineTypes: ['document'],
|
||||
dialect,
|
||||
engine: 'mongo@dbgate-plugin-mongo',
|
||||
title: 'MongoDB',
|
||||
|
||||
@@ -21,6 +21,7 @@ const driver = {
|
||||
engine: 'redis@dbgate-plugin-redis',
|
||||
title: 'Redis',
|
||||
defaultPort: 6379,
|
||||
databaseEngineTypes: ['keyvalue'],
|
||||
|
||||
showConnectionField: (field, values) => {
|
||||
return ['server', 'port', 'password'].includes(field);
|
||||
|
||||
Reference in New Issue
Block a user