mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
fixed import/export for separate schemas
This commit is contained in:
@@ -46,3 +46,14 @@ export function dbNameLogCategory(database: string): string {
|
||||
}
|
||||
return '~nodb';
|
||||
}
|
||||
|
||||
export function compositeDbNameIfNeeded(
|
||||
connnection: { useSeparateSchemas: boolean },
|
||||
database: string,
|
||||
schema: string
|
||||
) {
|
||||
if (connnection?.useSeparateSchemas) {
|
||||
return `${database}::${schema}`;
|
||||
}
|
||||
return database;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user