MCPcopy
hub / github.com/drizzle-team/drizzle-orm / getColumns

Function getColumns

drizzle-zod/src/schema.ts:15–17  ·  view source on GitHub ↗
(tableLike: Table | View)

Source from the content-addressed store, hash-verified

13import { isPgEnum } from './utils.ts';
14
15function getColumns(tableLike: Table | View) {
16 return isTable(tableLike) ? getTableColumns(tableLike) : getViewSelectedFields(tableLike);
17}
18
19function handleColumns(
20 columns: Record<string, any>,

Callers 4

handleColumnsFunction · 0.70
createSelectSchemaFunction · 0.70
createInsertSchemaFunction · 0.70
createUpdateSchemaFunction · 0.70

Calls 3

isTableFunction · 0.90
getTableColumnsFunction · 0.90
getViewSelectedFieldsFunction · 0.90

Tested by

no test coverage detected