MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / defaultTo$

Method defaultTo$

packages/core/fumadb/src/schema/create.ts:414–417  ·  view source on GitHub ↗

* Generate default value on runtime

(fn: DefaultFunction<Type>)

Source from the content-addressed store, hash-verified

412 * Generate default value on runtime
413 */
414 defaultTo$(fn: DefaultFunction<Type>): Column<Type, In | null, Out> {
415 this.default = { runtime: fn };
416 return this;
417 }
418
419 /**
420 * Set a database-level default value

Callers 11

unscopedExecutorTableFunction · 0.45
tenantExecutorTableFunction · 0.45
ownedExecutorTableFunction · 0.45
uuid.test.tsFile · 0.45
generate.test.tsFile · 0.45
migrate.test.tsFile · 0.45
cli.tsFile · 0.45
query.schema.tsFile · 0.45
normalizeColumnDefaultFunction · 0.45
defaultTo$Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected