(
databaseName?: string | null,
schemaName?: string | null,
options?: {
quoteIdentifiers?: boolean;
},
)
| 119 | } |
| 120 | |
| 121 | export function createNamespace( |
| 122 | databaseName?: string | null, |
| 123 | schemaName?: string | null, |
| 124 | options?: { |
| 125 | quoteIdentifiers?: boolean; |
| 126 | }, |
| 127 | ) { |
| 128 | let namespace = [databaseName, schemaName].filter(notNullOrUndefined); |
| 129 | |
| 130 | if (options?.quoteIdentifiers) { |
| 131 | namespace = namespace.map(quoteIdentifier); |
| 132 | } |
| 133 | |
| 134 | return namespace.join("."); |
| 135 | } |
| 136 | |
| 137 | function formatFullyQualifiedSchemaIdentifier( |
| 138 | { |
no test coverage detected