UNPKG

dbgate-tools

Version:

Auxiliary tools for other DbGate packages.

13 lines (12 loc) 646 B
import { SchemaInfo, SqlDialect } from 'dbgate-types'; export declare function findDefaultSchema(schemaList: SchemaInfo[], dialect: SqlDialect, schemaInStorage?: string): string; export declare function isCompositeDbName(name: string): boolean; export declare function splitCompositeDbName(name: string): { database: string; schema: string; }; export declare function extractDbNameFromComposite(name: string): string; export declare function extractSchemaNameFromComposite(name: string): string; export declare function compositeDbNameIfNeeded(connnection: { useSeparateSchemas: boolean; }, database: string, schema: string): string;