fixed import/export for separate schemas

This commit is contained in:
SPRINX0\prochazka
2024-09-26 13:22:36 +02:00
parent 555f30c0b3
commit 53dc2e6f03
4 changed files with 34 additions and 8 deletions

View File

@@ -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;
}