MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / column

Function column

packages/core/fumadb/src/schema/create.ts:498–507  ·  view source on GitHub ↗
(
  name: string | Partial<NameVariants>,
  type: Type
)

Source from the content-addressed store, hash-verified

496}
497
498export function column<Type extends keyof TypeMap>(
499 name: string | Partial<NameVariants>,
500 type: Type
501): Column<Type, TypeMap[Type], TypeMap[Type]> {
502 return new Column(type, (ormName) =>
503 typeof name === "string"
504 ? nameVariants(name, ormName)
505 : nameVariants(ormName, ormName, name)
506 );
507}
508
509export function idColumn<Type extends IdColumnType>(
510 name: string | Partial<NameVariants>,

Callers 15

textColumnFunction · 0.90
nullableTextColumnFunction · 0.90
keyColumnFunction · 0.90
nullableKeyColumnFunction · 0.90
boolColumnFunction · 0.90
bigintColumnFunction · 0.90
nullableBigintColumnFunction · 0.90
jsonColumnFunction · 0.90
nullableJsonColumnFunction · 0.90
dateColumnFunction · 0.90
uuid.test.tsFile · 0.90
generate.test.tsFile · 0.90

Calls 1

nameVariantsFunction · 0.85

Tested by

no test coverage detected