mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
fix WIP
This commit is contained in:
parent
354c4201f7
commit
61a9f02899
@ -15,7 +15,7 @@ Builds:
|
|||||||
- ADDED: Clickhouse support (#532)
|
- ADDED: Clickhouse support (#532)
|
||||||
- ADDED: MySQL - specify table engine, show table engine in table list
|
- ADDED: MySQL - specify table engine, show table engine in table list
|
||||||
- FIXED: Hidden primary key name in PK editor for DB engines with anonymous PK (MySQL)
|
- FIXED: Hidden primary key name in PK editor for DB engines with anonymous PK (MySQL)
|
||||||
- CHANGED: Import/export dialog is now tab instead of modal
|
- CHANGED: Import/export dialog is now tacub instead of modal
|
||||||
- ADDED: Saving import/export job
|
- ADDED: Saving import/export job
|
||||||
- REMOVED: Ability to reopen export/import wizard from generated script. This was a bit hack, now you could save import/export job instead
|
- REMOVED: Ability to reopen export/import wizard from generated script. This was a bit hack, now you could save import/export job instead
|
||||||
- ADDED: Autodetect CSV delimited
|
- ADDED: Autodetect CSV delimited
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
const stableStringify = require('json-stable-stringify');
|
const stableStringify = require('json-stable-stringify');
|
||||||
const { splitQuery } = require('dbgate-query-splitter');
|
const { splitQuery } = require('dbgate-query-splitter');
|
||||||
const childProcessChecker = require('../utility/childProcessChecker');
|
const childProcessChecker = require('../utility/childProcessChecker');
|
||||||
const { extractBoolSettingsValue, extractIntSettingsValue, getLogger } = require('dbgate-tools');
|
const { extractBoolSettingsValue, extractIntSettingsValue, getLogger, isCompositeDbName } = require('dbgate-tools');
|
||||||
const requireEngineDriver = require('../utility/requireEngineDriver');
|
const requireEngineDriver = require('../utility/requireEngineDriver');
|
||||||
const connectUtility = require('../utility/connectUtility');
|
const connectUtility = require('../utility/connectUtility');
|
||||||
const { handleProcessCommunication } = require('../utility/processComm');
|
const { handleProcessCommunication } = require('../utility/processComm');
|
||||||
@ -102,6 +102,7 @@ function setStatusName(name) {
|
|||||||
async function readVersion() {
|
async function readVersion() {
|
||||||
const driver = requireEngineDriver(storedConnection);
|
const driver = requireEngineDriver(storedConnection);
|
||||||
const version = await driver.getVersion(dbhan);
|
const version = await driver.getVersion(dbhan);
|
||||||
|
logger.debug(`Got server version: ${version.version}`);
|
||||||
process.send({ msgtype: 'version', version });
|
process.send({ msgtype: 'version', version });
|
||||||
serverVersion = version;
|
serverVersion = version;
|
||||||
}
|
}
|
||||||
@ -113,6 +114,11 @@ async function handleConnect({ connection, structure, globalSettings }) {
|
|||||||
if (!structure) setStatusName('pending');
|
if (!structure) setStatusName('pending');
|
||||||
const driver = requireEngineDriver(storedConnection);
|
const driver = requireEngineDriver(storedConnection);
|
||||||
dbhan = await checkedAsyncCall(connectUtility(driver, storedConnection, 'app'));
|
dbhan = await checkedAsyncCall(connectUtility(driver, storedConnection, 'app'));
|
||||||
|
logger.debug(
|
||||||
|
`Connected to database, driver: ${storedConnection.engine}, separate schemas: ${
|
||||||
|
storedConnection.useSeparateSchemas ? 'YES' : 'NO'
|
||||||
|
}, 'DB: ${isCompositeDbName(dbhan.database) ? 'composite' : dbhan.database ? 'simple' : 'NO'} }`
|
||||||
|
);
|
||||||
dbhan.feedback = feedback => setStatus({ feedback });
|
dbhan.feedback = feedback => setStatus({ feedback });
|
||||||
await checkedAsyncCall(readVersion());
|
await checkedAsyncCall(readVersion());
|
||||||
if (structure) {
|
if (structure) {
|
||||||
|
Loading…
Reference in New Issue
Block a user