Evaluates CHECK expression data against a row the way PostgreSQL does: nil is NULL, comparisons and functions yield nil when an operand is nil, and a CHECK passes unless its result is false. AND, OR and COALESCE stop at the first decisive operand, left to right. An expression PostgreSQL would fail on (division by zero, a cast that does not parse) fails the row, since the database would reject it too. Rows hold the registry's types (java.time, UUID, jsonb as maps and vectors).
Only the vocabulary that occurs in CHECK constraints is implemented; supported? tells whether an expression is inside it, and render leaves the others unrendered.
Evaluates CHECK expression data against a row the way PostgreSQL does: nil is NULL, comparisons and functions yield nil when an operand is nil, and a CHECK passes unless its result is false. AND, OR and COALESCE stop at the first decisive operand, left to right. An expression PostgreSQL would fail on (division by zero, a cast that does not parse) fails the row, since the database would reject it too. Rows hold the registry's types (java.time, UUID, jsonb as maps and vectors). Only the vocabulary that occurs in CHECK constraints is implemented; supported? tells whether an expression is inside it, and render leaves the others unrendered.
(checker e)Row predicate of a CHECK expression: true when the result is true or NULL, as in PostgreSQL.
Row predicate of a CHECK expression: true when the result is true or NULL, as in PostgreSQL.
(java-regex re)The Java regex for a PostgreSQL pattern, or nil when it uses syntax Java reads differently.
The Java regex for a PostgreSQL pattern, or nil when it uses syntax Java reads differently.
(like-regex pattern)The anchored Java regex of a LIKE pattern (backslash escapes % and _).
The anchored Java regex of a LIKE pattern (backslash escapes % and _).
(supported? e)(supported? e types)Whether every operator, cast and pattern in the expression is implemented; types are the schema's enum and domain names, whose literals are values as they are.
Whether every operator, cast and pattern in the expression is implemented; types are the schema's enum and domain names, whose literals are values as they are.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |