(qname: string)
| 95 | |
| 96 | /** Split schema.table into [schema, table] */ |
| 97 | export function qNameSplit(qname: string) { |
| 98 | if (qname.indexOf(".") > 0) { |
| 99 | const [schemaName, tableNameOrig] = qname.split("."); |
| 100 | return [schemaName, tableNameOrig]; |
| 101 | } |
| 102 | return [null, qname]; |
| 103 | } |
| 104 | |
| 105 | /** Get combined schema.table name */ |
| 106 | export function qNameJoin(schema: string | undefined, table: string | undefined) { |
no outgoing calls
no test coverage detected