mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 02:06:01 +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) {
|
||||
return new Promise((resolve, reject) => {
|
||||
dbhan.client.detach(err => {
|
||||
|
||||
@@ -75,13 +75,14 @@ const firebirdDriverBase = {
|
||||
defaultPort: 3050,
|
||||
showConnectionField: field => ['port', 'user', 'password', 'server', 'databaseFile'].includes(field),
|
||||
getQuerySplitterOptions: () => firebirdSplitterOptions,
|
||||
// beforeConnectionSave: connection => {
|
||||
// const { databaseFile } = connection;
|
||||
// return {
|
||||
// singleDatabase: true,
|
||||
// defaultDatabase: databaseFile,
|
||||
// };
|
||||
// },
|
||||
beforeConnectionSave: connection => {
|
||||
const { databaseFile } = connection;
|
||||
return {
|
||||
...connection,
|
||||
singleDatabase: true,
|
||||
defaultDatabase: databaseFile,
|
||||
};
|
||||
},
|
||||
engine: 'firebird@dbgate-plugin-firebird',
|
||||
title: 'Firebird',
|
||||
supportsTransactions: true,
|
||||
|
||||
Reference in New Issue
Block a user