Liking cljdoc? Tell your friends :D

postgres.typed.typed-shape


access-fieldclj

(access-field shape field-name accessor-type)

Extracts a field type from a shape. Used by analyzer for :-> and :->> ops.

Extracts a field type from a shape. Used by analyzer for :-> and :->> ops.
raw docstring

map-schema->shapeclj

(map-schema->shape map-schema)

Converts a map schema definition to a JsonbShape.

Converts a map schema definition to a JsonbShape.
raw docstring

map-schema-entry->field-typeclj

(map-schema-entry->field-type entry-key entry-val)

Converts a single map schema entry to a field descriptor. Handles nested map schemas recursively.

Converts a single map schema entry to a field descriptor.
Handles nested map schemas recursively.
raw docstring

resolve-column-typeclj

(resolve-column-type col)

Resolves a ColumnDef's type to a field descriptor. Handles explicit JSONB shapes and nested map schemas for JSONB columns.

Resolves a ColumnDef's type to a field descriptor.
Handles explicit JSONB shapes and nested map schemas for JSONB columns.
raw docstring

shape->mapclj

(shape->map shape)

Converts a shape to a plain map (for debugging/API).

Converts a shape to a plain map (for debugging/API).
raw docstring

shape-for-table-opclj

(shape-for-table-op op table-def opts)

Returns the appropriate type/shape for a table operation.

Returns the appropriate type/shape for a table operation.
raw docstring

table->shapeclj

(table->shape table-def)
(table->shape table-def class-table)

Converts a TableDef to a JsonbShape. SINGLE SOURCE OF TRUTH. Guarantees:

  • Ref fields get -id suffix (e.g., :org -> :org-id)
  • Primary keys are always non-nullable.
Converts a TableDef to a JsonbShape. SINGLE SOURCE OF TRUTH.
Guarantees:
- Ref fields get -id suffix (e.g., :org -> :org-id)
- Primary keys are always non-nullable.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close