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

Method nullable

packages/core/fumadb/src/schema/create.ts:393–401  ·  view source on GitHub ↗
(nullable?: T)

Source from the content-addressed store, hash-verified

391 }
392
393 nullable<T extends boolean = true>(nullable?: T) {
394 this.isNullable = nullable ?? true;
395
396 return this as Column<
397 Type,
398 T extends true ? In | null : Exclude<In, null>,
399 T extends true ? Out | null : Exclude<Out, null>
400 >;
401 }
402
403 /**
404 * Add unique constraint to the field, for consistency, duplicated null values are allowed.

Callers 12

nullableTextColumnFunction · 0.80
nullableKeyColumnFunction · 0.80
nullableBigintColumnFunction · 0.80
nullableJsonColumnFunction · 0.80
uuid.test.tsFile · 0.80
generate.test.tsFile · 0.80
migrate.test.tsFile · 0.80
cli.tsFile · 0.80
query.schema.tsFile · 0.80
buildColumnFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected