MCPcopy Create free account
hub / github.com/Effect-TS/effect / UuidV4BytesInsert

Function UuidV4BytesInsert

packages/effect/src/unstable/schema/Model.ts:766–774  ·  view source on GitHub ↗
(
  schema: Schema.brand<Schema.instanceOf<Uint8Array<ArrayBuffer>>, B>
)

Source from the content-addressed store, hash-verified

764 * @since 4.0.0
765 */
766export const UuidV4BytesInsert = <const B extends string>(
767 schema: Schema.brand<Schema.instanceOf<Uint8Array<ArrayBuffer>>, B>
768): UuidV4BytesInsert<B> =>
769 Field({
770 select: schema,
771 insert: UuidV4BytesWithGenerate(schema),
772 update: schema,
773 json: schema
774 })
775
776/**
777 * Variant field type for a branded string UUID v4 value whose insert variant

Callers

nothing calls this directly

Calls 2

UuidV4BytesWithGenerateFunction · 0.85
FieldFunction · 0.70

Tested by

no test coverage detected