Expand description
PostgreSQL-specific expressions.
This module provides PostgreSQL dialect-specific SQL expressions and operators.
For standard SQL expressions, use drizzle_core::expr.
Structs§
- PgArray
- Wrapper for passing a
Vec<T>as a singlePostgreSQLarray parameter.
Traits§
- Array
Expr Ext - Extension trait providing method-based array operators for
PostgreSQLexpressions. - Json
Expr Ext - Extension trait providing method-based JSON operators for
PostgreSQLexpressions. - Regex
Expr Ext - Extension trait providing method-based regex operators for
PostgreSQLexpressions.
Functions§
- array_
contained PostgreSQL<@operator - array is contained by.- array_
contains PostgreSQL@>operator - array contains.- array_
overlaps PostgreSQL&&operator - arrays overlap.- ilike
- Case-insensitive LIKE pattern matching (PostgreSQL-specific)
- json_
get PostgreSQL->operator - get JSON object field by key, returns JSON.- json_
get_ idx PostgreSQL->operator with integer index - get JSON array element.- json_
get_ path PostgreSQL#>operator - get JSON object at specified path, returns JSON.- json_
get_ path_ text PostgreSQL#>>operator - get JSON object at specified path as text.- json_
get_ text PostgreSQL->>operator - get JSON object field as text.- json_
get_ text_ idx PostgreSQL->>operator with integer index - get JSON array element as text.- jsonb_
contained PostgreSQL<@operator for JSONB - left JSON is contained by right JSON.- jsonb_
contains PostgreSQL@>operator for JSONB - left JSON contains right JSON.- jsonb_
exists_ all PostgreSQL?&operator for JSONB - do all of the keys exist?- jsonb_
exists_ any PostgreSQL?|operator for JSONB - do any of the keys exist?- jsonb_
exists_ key PostgreSQL?operator for JSONB - does the key exist in the JSON object?- not_
ilike - Case-insensitive NOT LIKE pattern matching (PostgreSQL-specific)
- regex_
match PostgreSQL~operator - case-sensitive regex match.- regex_
match_ ci PostgreSQL~*operator - case-insensitive regex match.- regex_
not_ match PostgreSQL!~operator - case-sensitive regex non-match.- regex_
not_ match_ ci PostgreSQL!~*operator - case-insensitive regex non-match.