mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 09:45:59 +00:00
fix: make firebird singledatabase
This commit is contained in:
@@ -144,14 +144,6 @@ const driver = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
async listDatabases(dbhan) {
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
name: 'default',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
},
|
|
||||||
|
|
||||||
async close(dbhan) {
|
async close(dbhan) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
dbhan.client.detach(err => {
|
dbhan.client.detach(err => {
|
||||||
|
|||||||
@@ -75,13 +75,14 @@ const firebirdDriverBase = {
|
|||||||
defaultPort: 3050,
|
defaultPort: 3050,
|
||||||
showConnectionField: field => ['port', 'user', 'password', 'server', 'databaseFile'].includes(field),
|
showConnectionField: field => ['port', 'user', 'password', 'server', 'databaseFile'].includes(field),
|
||||||
getQuerySplitterOptions: () => firebirdSplitterOptions,
|
getQuerySplitterOptions: () => firebirdSplitterOptions,
|
||||||
// beforeConnectionSave: connection => {
|
beforeConnectionSave: connection => {
|
||||||
// const { databaseFile } = connection;
|
const { databaseFile } = connection;
|
||||||
// return {
|
return {
|
||||||
// singleDatabase: true,
|
...connection,
|
||||||
// defaultDatabase: databaseFile,
|
singleDatabase: true,
|
||||||
// };
|
defaultDatabase: databaseFile,
|
||||||
// },
|
};
|
||||||
|
},
|
||||||
engine: 'firebird@dbgate-plugin-firebird',
|
engine: 'firebird@dbgate-plugin-firebird',
|
||||||
title: 'Firebird',
|
title: 'Firebird',
|
||||||
supportsTransactions: true,
|
supportsTransactions: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user