MCPcopy
hub / github.com/CapSoftware/Cap / nanoIdRequired

Function nanoIdRequired

packages/database/schema.ts:54–55  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

52});
53// TODO: This will replace `nanoId` in: https://github.com/CapSoftware/Cap/pull/1105
54const nanoIdRequired = (name: string) =>
55 varchar(name, { length: nanoIdLength }).notNull();
56
57const nanoIdNullable = customType<{ data: string; notNull: false }>({
58 dataType() {

Callers 1

schema.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected