MCPcopy
hub / github.com/sequelize/sequelize-auto / qNameSplit

Function qNameSplit

src/types.ts:97–103  ·  view source on GitHub ↗
(qname: string)

Source from the content-addressed store, hash-verified

95
96/** Split schema.table into [schema, table] */
97export 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 */
106export function qNameJoin(schema: string | undefined, table: string | undefined) {

Callers 6

writeMethod · 0.90
createFileMethod · 0.90
addRelationMethod · 0.90
generateTextMethod · 0.90
addTableMethod · 0.90
addSchemaForRelationsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected