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

Method defaultTo

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

* Set a database-level default value * * For schemaless database, it's still generated on runtime

(value: TypeMap[Type])

Source from the content-addressed store, hash-verified

422 * For schemaless database, it's still generated on runtime
423 */
424 defaultTo(value: TypeMap[Type]): Column<Type, In | null, Out> {
425 this.default = { value };
426 return this;
427 }
428
429 clone() {
430 const clone = new Column(this.type, () => this.names);

Callers 10

boolColumnFunction · 0.45
generate.test.tsFile · 0.45
migrate.test.tsFile · 0.45
query.schema.tsFile · 0.45
generateSchemaFunction · 0.45
normalizeColumnDefaultFunction · 0.45
getColumnBuilderCallbackFunction · 0.45
generateSchemaFunction · 0.45
defaultToMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected