mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
SYNC: fix
This commit is contained in:
committed by
Diflow
parent
d365ecce46
commit
35855297eb
@@ -8,7 +8,7 @@ dbgateApi.registerPlugins(dbgatePluginMysql);
|
|||||||
const dbgatePluginPostgres = require('dbgate-plugin-postgres');
|
const dbgatePluginPostgres = require('dbgate-plugin-postgres');
|
||||||
dbgateApi.registerPlugins(dbgatePluginPostgres);
|
dbgateApi.registerPlugins(dbgatePluginPostgres);
|
||||||
|
|
||||||
async function createDb(connection, dropDbSql, createDbSql, database = 'my_guitar_shop', { dropDatabaseName }) {
|
async function createDb(connection, dropDbSql, createDbSql, database = 'my_guitar_shop', { dropDatabaseName } = {}) {
|
||||||
if (dropDbSql) {
|
if (dropDbSql) {
|
||||||
try {
|
try {
|
||||||
await dbgateApi.executeQuery({
|
await dbgateApi.executeQuery({
|
||||||
|
|||||||
Reference in New Issue
Block a user