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

Function buildColumn

console/src/api/mocks/buildSqlQueryHandler.ts:387–394  ·  view source on GitHub ↗
(column: Partial<Column>)

Source from the content-addressed store, hash-verified

385}
386
387export function buildColumn(column: Partial<Column>): Column {
388 return {
389 name: column.name ?? "",
390 type_oid: column.type_oid ?? MzDataType.text,
391 type_len: column.type_len ?? -1,
392 type_mod: column.type_mod ?? -1,
393 };
394}
395
396/**
397 * A wrapper over buildSqlQueryHandler.

Calls

no outgoing calls

Tested by

no test coverage detected