MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / createNamespace

Function createNamespace

console/src/api/materialize/index.ts:121–135  ·  view source on GitHub ↗
(
  databaseName?: string | null,
  schemaName?: string | null,
  options?: {
    quoteIdentifiers?: boolean;
  },
)

Source from the content-addressed store, hash-verified

119}
120
121export 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
137function formatFullyQualifiedSchemaIdentifier(
138 {

Callers 15

ShellHeaderFunction · 0.90
getSelectedSchemaOptionFunction · 0.90
ClusterFreshnessTableFunction · 0.90
ObjectIndexesContentFunction · 0.90
SourceTablesFunction · 0.90
SourceTableFunction · 0.90
SinkTableFunction · 0.90
NoticeTableFunction · 0.90
OverviewHeader.tsxFile · 0.90
IndexTableFunction · 0.90

Calls 3

filterMethod · 0.45
mapMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected