MCPcopy Index your code
hub / github.com/Effect-TS/effect / JsonFromString

Function JsonFromString

packages/sql/src/Model.ts:604–616  ·  view source on GitHub ↗
(
  schema: S
)

Source from the content-addressed store, hash-verified

602 * @category json
603 */
604export const JsonFromString = <S extends Schema.Schema.All | Schema.PropertySignature.All>(
605 schema: S
606): JsonFromString<S> => {
607 const parsed = Schema.parseJson(schema as any)
608 return Field({
609 select: parsed,
610 insert: parsed,
611 update: parsed,
612 json: schema,
613 jsonCreate: schema,
614 jsonUpdate: schema
615 }) as any
616}
617
618/**
619 * @since 1.0.0

Callers

nothing calls this directly

Calls 1

FieldInterface · 0.50

Tested by

no test coverage detected