fix: make firebird singledatabase

This commit is contained in:
Pavel
2025-05-29 14:53:09 +02:00
parent a5adfb7c7f
commit c9a5fe5676
2 changed files with 8 additions and 15 deletions

View File

@@ -144,14 +144,6 @@ const driver = {
};
},
async listDatabases(dbhan) {
return [
{
name: 'default',
},
];
},
async close(dbhan) {
return new Promise((resolve, reject) => {
dbhan.client.detach(err => {

View File

@@ -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,