Postgres module

Json_Column

structsince 0.27.0Source

One line of the hand-written db/json_columns.jai:

Example
Json_Columns :: Pg.Json_Column.[ .{ "users.settings", Settings, .{ unknown_fields = .DENY } } ];

Doesn't run in the browser (skipped on wasm).

column is "table.column", with the schema in front when it is not public. options says how strictly that column's documents are decoded; it sits between the connection's options and a query's own (json_options.jai).

Fields

column: string
type: Type
options: Json_Options

See also