CipherStash Docs
Eql

EQL API Reference

Complete API reference for the Encrypt Query Language (EQL) PostgreSQL extension.

Latest Version: 2.2.1

Complete API reference for the Encrypt Query Language (EQL) PostgreSQL extension.

Functions

Private Functions


Functions

->(eql_v2_encrypted, eql_v2_encrypted)

-> operator with encrypted selector

Parameters

NameTypeDescription
eeql_v2_encryptedEncrypted JSONB data
selectoreql_v2_encryptedEncrypted field selector

Returns

Type: eql_v2_encrypted

eql_v2_encrypted Encrypted value at selector

Variants

  • ->(eql_v2_encrypted, text)

->>(eql_v2_encrypted, eql_v2_encrypted)

->> operator with encrypted selector

Parameters

NameTypeDescription
eeql_v2_encryptedEncrypted JSONB data
selectoreql_v2_encryptedEncrypted field selector

Returns

Type: text

text Encrypted value at selector, implicitly cast from eql_v2_encrypted

Variants

  • ->>(eql_v2_encrypted, text)

>(eql_v2_encrypted, eql_v2_encrypted)

operator for encrypted value and JSONB

Parameters

NameTypeDescription
aeql_v2_encrypted
beql_v2_encrypted

Variants


blake3(eql_v2_encrypted)

Extract Blake3 hash index term from encrypted column value.

Extracts the Blake3 hash from an encrypted column value by accessing its underlying JSONB data field.

Parameters

NameTypeDescription
valeql_v2_encryptedcolumn value

Returns

Type: eql_v2.blake3

eql_v2.blake3 Blake3 hash value, or NULL if not present

Variants

  • blake3(jsonb)

bloom_filter(eql_v2_encrypted)

Extract Bloom filter index term from encrypted column value.

Extracts the Bloom filter from an encrypted column value by accessing its underlying JSONB data field.

Parameters

NameTypeDescription
valeql_v2_encryptedcolumn value

Returns

Type: eql_v2.bloom_filter

eql_v2.bloom_filter Bloom filter as smallint array

Variants

  • bloom_filter(jsonb)

check_encrypted(eql_v2_encrypted)

Validate encrypted composite type structure.

Validates an eql_v2_encrypted composite type by checking its underlying JSONB payload. Delegates to eql_v2.check_encrypted(jsonb).

Parameters

NameTypeDescription
valeql_v2_encryptedvalue to validate

Returns

Type: BOOLEAN

Boolean True if structure is valid

Exceptions

  • if any required field is missing or invalid

Variants

  • check_encrypted(jsonb)

compare_ore_block_u64_8_256_terms(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)

Compare ORE block composite types.

Parameters

NameTypeDescription
aeql_v2.ore_block_u64_8_256
beql_v2.ore_block_u64_8_256

compare_ore_block_u64_8_256_terms(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)

Compare ORE block composite types.

Parameters

NameTypeDescription
aeql_v2.ore_block_u64_8_256
beql_v2.ore_block_u64_8_256

compare_ore_block_u64_8_256_terms(eql_v2.ore_block_u64_8_256_term, eql_v2.ore_block_u64_8_256_term)

Compare arrays of ORE block terms recursively.

Parameters

NameTypeDescription
aeql_v2.ore_block_u64_8_256_term
beql_v2.ore_block_u64_8_256_term

compare_ore_cllw_term_bytes(bytea, bytea)

Compare CLLW ORE ciphertext bytes.

Parameters

NameTypeDescription
abytea
bbytea

compare_ore_cllw_var_8_term(eql_v2.ore_cllw_var_8, eql_v2.ore_cllw_var_8)

Compare variable-width CLLW ORE ciphertext terms.

Parameters

NameTypeDescription
aeql_v2.ore_cllw_var_8
beql_v2.ore_cllw_var_8

config_add_cast(text, text, text, jsonb)

Set cast type for column in configuration.

Parameters

NameTypeDescription
table_nametext
column_nametext
cast_astext
configjsonb

config_add_column(text, text, jsonb)

Add column to table configuration if not present.

Parameters

NameTypeDescription
table_nametext
column_nametext
configjsonb

config_add_index(text, text, text, jsonb, jsonb)

Add search index to column configuration.

Parameters

NameTypeDescription
table_nametext
column_nametext
index_nametext
optsjsonb
configjsonb

config_add_table(text, jsonb)

Add table to configuration if not present.

Parameters

NameTypeDescription
table_nametext
configjsonb

config_check_cast(jsonb)

Validate cast types in configuration.

Parameters

NameTypeDescription
valjsonb

config_check_indexes(jsonb)

Validate index types in configuration.

Parameters

NameTypeDescription
valjsonb

config_check_tables(jsonb)

Validate tables field presence.

Parameters

NameTypeDescription
valjsonb

config_check_version(jsonb)

Validate version field presence.

Parameters

NameTypeDescription
valjsonb

config_match_default()

Generate default options for match index.


count_encrypted_with_active_config(TEXT, TEXT)

Count rows encrypted with active configuration.

Parameters

NameTypeDescription
table_nameTEXT
column_nameTEXT

create_encrypted_columns()

Create encrypted columns for initial encryption.

For each plaintext column with pending configuration that lacks an encrypted target column, creates a new column '{column_name}_encrypted' of type eql_v2_encrypted. This prepares the database schema for initial encryption.

Returns

Type: TABLE(table_name

TABLE(table_name text, column_name text) Created encrypted columns

Note

Only creates columns that don't already exist

⚠️ Warning

Executes dynamic DDL (ALTER TABLE ADD COLUMN) - modifies database schema

Variants

  • eql_v2.rename_encrypted_columns

diff_config(JSONB, JSONB)

Compare two configurations and find differences.

Parameters

NameTypeDescription
aJSONB
bJSONB

eql_v2_configuration()

Unique pending configuration constraint.

Unique encrypting configuration constraint.

Parameters

NameTypeDescription
state

Note

Only one configuration can be 'encrypting' at once


has_blake3(jsonb)

Check if JSONB payload contains Blake3 index term.

Check if encrypted column value contains Blake3 index term.

Tests whether the encrypted data payload includes a 'b3' field, indicating a Blake3 hash is available for exact-match queries.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: boolean

Boolean True if Blake3 hash is present

Variants


has_bloom_filter(jsonb)

Check if JSONB payload contains Bloom filter index term.

Check if encrypted column value contains Bloom filter index term.

Tests whether the encrypted data payload includes a 'bf' field, indicating a Bloom filter is available for pattern-match queries.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: boolean

Boolean True if Bloom filter is present

Variants


has_hmac_256(jsonb)

Check if JSONB payload contains HMAC-SHA256 index term.

Check if encrypted column value contains HMAC-SHA256 index term.

Tests whether the encrypted data payload includes an 'hm' field, indicating an HMAC-SHA256 hash is available for exact-match queries.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: boolean

Boolean True if HMAC-SHA256 hash is present

Variants


has_ore_block_u64_8_256(jsonb)

Check if JSONB payload contains ORE block index term.

Check if encrypted column value contains ORE block index term.

Tests whether the encrypted data payload includes an 'ob' field, indicating an ORE block is available for range queries.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: boolean

Boolean True if ORE block is present

Variants


has_ore_cllw_u64_8(jsonb)

Check if JSONB payload contains CLLW ORE index term.

Check if encrypted column value contains CLLW ORE index term.

Tests whether the encrypted data payload includes an 'ocf' field, indicating a CLLW ORE ciphertext is available for range queries.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: boolean

Boolean True if CLLW ORE ciphertext is present

Variants


has_ore_cllw_var_8(jsonb)

Check if JSONB payload contains variable-width CLLW ORE index term.

Check if encrypted column value contains variable-width CLLW ORE index term.

Tests whether the encrypted data payload includes an 'ocv' field, indicating a variable-width CLLW ORE ciphertext is available for range queries.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: boolean

Boolean True if variable-width CLLW ORE ciphertext is present

Variants


hmac_256(eql_v2_encrypted)

Extract HMAC-SHA256 index term from encrypted column value.

Extracts the HMAC-SHA256 hash from an encrypted column value by accessing its underlying JSONB data field.

Parameters

NameTypeDescription
valeql_v2_encryptedcolumn value

Returns

Type: eql_v2.hmac_256

eql_v2.hmac_256 HMAC-SHA256 hash value

Variants

  • hmac_256(jsonb)

ilike(eql_v2_encrypted, eql_v2_encrypted)

Case-insensitive pattern matching helper.

Parameters

NameTypeDescription
aeql_v2_encrypted
beql_v2_encrypted

is_ste_vec_array(jsonb)

Check if JSONB payload is marked as an STE vector array.

Check if encrypted column value is marked as an STE vector array.

Tests whether the encrypted data payload has the 'a' (array) flag set to true, indicating it represents an array for STE vector operations.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: boolean

Boolean True if value is marked as an STE vector array

Variants


is_ste_vec_array()

Check if encrypted column value is marked as an STE vector array.

Tests whether an encrypted column value has the array flag set by checking its underlying JSONB data field.

Parameters

NameTypeDescription
val

Returns

Type: BEGIN IF NOT eql_v2

Boolean True if value is marked as an STE vector array

Variants


is_ste_vec_value(jsonb)

Check if JSONB payload is a single-element STE vector.

Check if encrypted column value is a single-element STE vector.

Tests whether the encrypted data payload contains an 'sv' field with exactly one element. Single-element STE vectors can be treated as regular encrypted values.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: boolean

Boolean True if value is a single-element STE vector

Variants


jsonb_array(jsonb)

Extract deterministic fields as array for GIN indexing.

Extract deterministic fields as array from encrypted column.

Extracts only deterministic search term fields (s, b3, hm, ocv, ocf) from each STE vector element. Excludes non-deterministic ciphertext for correct containment comparison using PostgreSQL's native > operator.

Parameters

NameTypeDescription
valjsonbcontaining encrypted EQL payload

Returns

Type: jsonb[]

jsonb[] Array of JSONB elements with only deterministic fields

Note

Use this for GIN indexes and containment queries

Variants


jsonb_array_elements(jsonb)

Extract elements from encrypted JSONB array.

Returns each element of an encrypted JSONB array as a separate row. Each element is returned as an eql_v2_encrypted value with metadata preserved from the parent array.

Parameters

NameTypeDescription
valjsonbJSONB payload representing an array

Returns

Type: SETOF

SETOF eql_v2_encrypted One row per array element

Note

Each element inherits metadata (version, ident) from parent

Exceptions

  • if value is not an array (missing 'a' flag)

Variants

  • eql_v2.jsonb_array_elements_text

jsonb_array_elements_text(jsonb)

Extract encrypted array elements as ciphertext.

Returns each element of an encrypted JSONB array as its raw ciphertext value (text representation). Unlike jsonb_array_elements, this returns only the ciphertext 'c' field without metadata.

Parameters

NameTypeDescription
valjsonbJSONB payload representing an array

Returns

Type: SETOF

SETOF text One ciphertext string per array element

Note

Returns ciphertext only, not full encrypted structure

Exceptions

  • if value is not an array (missing 'a' flag)

Variants

  • eql_v2.jsonb_array_elements

jsonb_array_from_array_elements(jsonb)

Extract full encrypted JSONB elements as array.

Extract full encrypted JSONB elements as array from encrypted column.

Extracts all JSONB elements from the STE vector including non-deterministic fields. Use jsonb_array() instead for GIN indexing and containment queries.

Parameters

NameTypeDescription
valjsonbcontaining encrypted EQL payload

Returns

Type: jsonb[]

jsonb[] Array of full JSONB elements

Variants


jsonb_array_length(jsonb)

Get length of encrypted JSONB array.

Returns the number of elements in an encrypted JSONB array by counting elements in the STE vector ('sv'). The encrypted value must have the array flag ('a') set to true.

Parameters

NameTypeDescription
valjsonbJSONB payload representing an array

Returns

Type: integer

integer Number of elements in the array

Note

Array flag 'a' must be present and set to true value

Exceptions

  • 'cannot get array length of a non-array' if 'a' flag is missing or not true

Variants

  • eql_v2.jsonb_array_elements

jsonb_array_to_bytea_array(jsonb)

Convert JSONB hex array to bytea array.

Parameters

NameTypeDescription
valjsonb

jsonb_contained_by(eql_v2_encrypted, eql_v2_encrypted)

GIN-indexable JSONB "is contained by" check.

GIN-indexable JSONB "is contained by" check (jsonb, encrypted)

GIN-indexable JSONB "is contained by" check (encrypted, jsonb)

Checks if all JSONB elements from 'a' are contained in 'b'. Uses jsonb[] arrays internally for native PostgreSQL GIN index support.

Parameters

NameTypeDescription
aeql_v2_encryptedValue to check (typically a table column)
beql_v2_encryptedContainer value

Returns

Type: boolean

Boolean True if all elements of a are contained in b

Variants


jsonb_contains(eql_v2_encrypted, jsonb)

GIN-indexable JSONB containment check (encrypted, jsonb)

GIN-indexable JSONB containment check (jsonb, encrypted)

Checks if encrypted value 'a' contains all JSONB elements from jsonb value 'b'. Uses jsonb[] arrays internally for native PostgreSQL GIN index support.

Parameters

NameTypeDescription
aeql_v2_encryptedContainer value (typically a table column)
bjsonbJSONB value to search for

Returns

Type: boolean

Boolean True if a contains all elements of b

Variants

  • jsonb_contains(eql_v2_encrypted, eql_v2_encrypted)

jsonb_path_exists(jsonb, text)

Check if selector path exists in encrypted JSONB.

Check existence with encrypted selector.

Tests whether any encrypted elements match the given selector path. More efficient than jsonb_path_query when only existence check is needed.

Parameters

NameTypeDescription
valjsonbEncrypted JSONB value to check
selectortextEncrypted selector to test

Returns

Type: boolean

boolean True if path exists

Variants


jsonb_path_query(eql_v2_encrypted, eql_v2_encrypted)

Query encrypted JSONB with encrypted selector.

Overload that accepts encrypted selector and extracts its plaintext value before delegating to main jsonb_path_query implementation.

Parameters

NameTypeDescription
valeql_v2_encryptedEncrypted JSONB value to query
selectoreql_v2_encryptedEncrypted selector to match against

Returns

Type: SETOF

SETOF eql_v2_encrypted Matching encrypted elements

Variants

  • jsonb_path_query(jsonb, text)

jsonb_path_query_first(jsonb, text)

Get first element matching selector.

Get first element with encrypted selector.

Returns only the first encrypted element matching the selector path, or NULL if no match found. More efficient than jsonb_path_query when only one result is needed.

Parameters

NameTypeDescription
valjsonbEncrypted JSONB value to query
selectortextEncrypted selector to match

Returns

Type: eql_v2_encrypted

eql_v2_encrypted First matching element or NULL

Note

Uses LIMIT 1 internally for efficiency

Variants


log(text, text)

Log message with context.

Overload of log function that includes context label for better log organization during testing.

Parameters

NameTypeDescription
ctxtextContext label (e.g., test name, module name)
stextMessage to log

Note

Format: "[LOG] {ctx} {message}"

Variants


log(text)

Log message for debugging.

Convenience function to emit log messages during testing and debugging. Uses RAISE NOTICE to output messages to PostgreSQL logs.

Parameters

NameTypeDescription
stextto log

Note

Primarily used in tests and development

Variants


ore_block_u64_8_256(jsonb)

Extract ORE block index term from JSONB payload.

Extract ORE block index term from encrypted column value.

Extracts the ORE block array from the 'ob' field of an encrypted data payload. Used internally for range query comparisons.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: eql_v2.ore_block_u64_8_256

eql_v2.ore_block_u64_8_256 ORE block index term

Exceptions

  • if 'ob' field is missing when ore index is expected

Variants


ore_block_u64_8_256_gt(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)

Greater than operator for ORE block types.

Parameters

NameTypeDescription
aeql_v2.ore_block_u64_8_256
beql_v2.ore_block_u64_8_256

ore_block_u64_8_256_gte(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)

Greater than or equal operator for ORE block types.

Parameters

NameTypeDescription
aeql_v2.ore_block_u64_8_256
beql_v2.ore_block_u64_8_256

ore_block_u64_8_256_lt(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)

Less than operator for ORE block types.

Parameters

NameTypeDescription
aeql_v2.ore_block_u64_8_256
beql_v2.ore_block_u64_8_256

ore_block_u64_8_256_lte(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)

Less than or equal operator for ORE block types.

Parameters

NameTypeDescription
aeql_v2.ore_block_u64_8_256
beql_v2.ore_block_u64_8_256

ore_block_u64_8_256_neq(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)

Not equal operator for ORE block types.

Parameters

NameTypeDescription
aeql_v2.ore_block_u64_8_256
beql_v2.ore_block_u64_8_256

ore_cllw_u64_8(eql_v2_encrypted)

Extract CLLW ORE index term from encrypted column value.

Extracts the CLLW ORE ciphertext from an encrypted column value by accessing its underlying JSONB data field.

Parameters

NameTypeDescription
valeql_v2_encryptedcolumn value

Returns

Type: eql_v2.ore_cllw_u64_8

eql_v2.ore_cllw_u64_8 CLLW ORE ciphertext

Variants

  • ore_cllw_u64_8(jsonb)

ore_cllw_var_8(eql_v2_encrypted)

Extract variable-width CLLW ORE index term from encrypted column value.

Extracts the variable-width CLLW ORE ciphertext from an encrypted column value by accessing its underlying JSONB data field.

Parameters

NameTypeDescription
valeql_v2_encryptedcolumn value

Returns

Type: eql_v2.ore_cllw_var_8

eql_v2.ore_cllw_var_8 Variable-width CLLW ORE ciphertext

Variants

  • ore_cllw_var_8(jsonb)

ready_for_encryption()

Check if database is ready for encryption.

Verifies that all columns with pending configuration have corresponding encrypted target columns created. Returns true if encryption can proceed.

Returns

Type: BOOLEAN

boolean True if all pending columns have target encrypted columns

Note

Returns false if any pending column lacks encrypted column

Variants

  • eql_v2.create_encrypted_columns

reload_config()

Reload configuration from CipherStash Proxy.

Placeholder function for reloading configuration from the CipherStash Proxy. Currently returns NULL without side effects.

Returns

Type: void

Void

Note

This function may be used for configuration synchronization in future versions


rename_encrypted_columns()

Finalize initial encryption by renaming columns.

After initial encryption completes, renames columns to complete the transition:Plaintext column '{column_name}' → '{column_name}_plaintext'Encrypted column '{column_name}_encrypted' → '{column_name}'

This makes the encrypted column the primary column with the original name.

Returns

Type: TABLE(table_name

TABLE(table_name text, column_name text, target_column text) Renamed columns

Note

Only renames columns where target is '{column_name}_encrypted'

⚠️ Warning

Executes dynamic DDL (ALTER TABLE RENAME COLUMN) - modifies database schema

Variants

  • eql_v2.create_encrypted_columns

select_pending_columns()

Get columns with pending configuration changes.

Compares 'pending' and 'active' configurations to identify columns that need encryption or re-encryption. Returns columns where configuration differs.

Returns

Type: TABLE(table_name

TABLE(table_name text, column_name text) Columns needing encryption

Note

Treats missing active config as empty config

Exceptions

  • if no pending configuration exists

Variants

  • eql_v2.select_target_columns

select_target_columns()

Map pending columns to their encrypted target columns.

For each column with pending configuration, identifies the corresponding encrypted column. During initial encryption, target is '{column_name}_encrypted'. Returns NULL for target_column if encrypted column doesn't exist yet.

Returns

Type: TABLE(table_name

TABLE(table_name text, column_name text, target_column text) Column mappings

Note

The LEFT JOIN checks both original and '_encrypted' suffix variations with type verification

Variants

  • eql_v2.create_encrypted_columns

selector(jsonb)

Extract selector value from JSONB payload.

Extract selector value from encrypted column value.

Extracts the selector ('s') field from an encrypted data payload. Selectors are used to match STE vector elements during containment queries.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: text

Text The selector value

Exceptions

  • if 's' field is missing

Variants


ste_vec(eql_v2_encrypted)

Extract STE vector index from encrypted column value.

Extracts the STE vector from an encrypted column value by accessing its underlying JSONB data field. Used for containment query operations.

Parameters

NameTypeDescription
valeql_v2_encryptedcolumn value

Returns

Type: public.eql_v2_encrypted[]

eql_v2_encrypted[] Array of encrypted STE vector elements

Variants

  • ste_vec(jsonb)

ste_vec_contains(eql_v2_encrypted, eql_v2_encrypted)

Check if encrypted value 'a' contains all elements of encrypted value 'b'.

Performs STE vector containment comparison between two encrypted values. Returns true if all elements in b's STE vector are found in a's STE vector. Used internally by the > containment operator for searchable encryption.

Parameters

NameTypeDescription
aeql_v2_encryptedFirst encrypted value (container)
beql_v2_encryptedSecond encrypted value (elements to find)

Returns

Type: boolean

Boolean True if all elements of b are contained in a

Note

Each element of b must match both selector and value in a

Variants

  • eql_v2."@>"

ste_vec_contains(public.eql_v2_encrypted, eql_v2_encrypted)

Check if STE vector array contains a specific encrypted element.

Tests whether any element in the STE vector array 'a' contains the encrypted value 'b'. Matching requires both the selector and encrypted value to be equal. Used internally by ste_vec_contains(encrypted, encrypted) for array containment checks.

Parameters

NameTypeDescription
apublic.eql_v2_encrypted
beql_v2_encryptedelement to search for

Returns

Type: boolean

Boolean True if b is found in any element of a

Note

Compares both selector and encrypted value for match

Variants


to_encrypted(text)

Convert text to encrypted type.

Parses a text representation of encrypted JSONB payload and wraps it in the eql_v2_encrypted composite type.

Parameters

NameTypeDescription
datatextrepresentation of JSONB encrypted payload

Returns

Type: public.eql_v2_encrypted

eql_v2_encrypted Encrypted value wrapped in composite type

Note

Delegates to eql_v2.to_encrypted(jsonb) after parsing text as JSON

Variants

  • to_encrypted(jsonb)

to_jsonb(eql_v2_encrypted)

Convert encrypted type to JSONB.

Extracts the underlying JSONB payload from an eql_v2_encrypted composite type. Useful for debugging or when raw encrypted payload access is needed.

Parameters

NameTypeDescription
e public.eql_v2_encrypted

Returns

Type: jsonb

jsonb Raw JSONB encrypted payload

Note

Returns the raw encrypted structure including ciphertext and index terms

Variants

  • to_encrypted(jsonb)

to_ste_vec_value(jsonb)

Convert single-element STE vector to regular encrypted value.

Convert single-element STE vector to regular encrypted value (encrypted type)

Extracts the single element from a single-element STE vector and returns it as a regular encrypted value, preserving metadata. If the input is not a single-element STE vector, returns it unchanged.

Parameters

NameTypeDescription
valjsonbencrypted EQL payload

Returns

Type: eql_v2_encrypted

eql_v2_encrypted Regular encrypted value (unwrapped if single-element STE vector)

Variants


Private Functions

_encrypted_check_c(jsonb)

Validate ciphertext field in encrypted payload.

Parameters

NameTypeDescription
valjsonb

_encrypted_check_i_ct(jsonb)

Validate table and column fields in ident.

Parameters

NameTypeDescription
valjsonb

_encrypted_check_v(jsonb)

Validate version field in encrypted payload.

Parameters

NameTypeDescription
valjsonb

_first_grouped_value()

State transition function for grouped_value aggregate.

Parameters

NameTypeDescription
jsonb
jsonb

On this page

FunctionsPrivate FunctionsFunctions->(eql_v2_encrypted, eql_v2_encrypted)ParametersReturnsVariants->>(eql_v2_encrypted, eql_v2_encrypted)ParametersReturnsVariants>(eql_v2_encrypted, eql_v2_encrypted)ParametersVariantsblake3(eql_v2_encrypted)ParametersReturnsVariantsbloom_filter(eql_v2_encrypted)ParametersReturnsVariantscheck_encrypted(eql_v2_encrypted)ParametersReturnsExceptionsVariantscompare_ore_block_u64_8_256_terms(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)Parameterscompare_ore_block_u64_8_256_terms(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)Parameterscompare_ore_block_u64_8_256_terms(eql_v2.ore_block_u64_8_256_term, eql_v2.ore_block_u64_8_256_term)Parameterscompare_ore_cllw_term_bytes(bytea, bytea)Parameterscompare_ore_cllw_var_8_term(eql_v2.ore_cllw_var_8, eql_v2.ore_cllw_var_8)Parametersconfig_add_cast(text, text, text, jsonb)Parametersconfig_add_column(text, text, jsonb)Parametersconfig_add_index(text, text, text, jsonb, jsonb)Parametersconfig_add_table(text, jsonb)Parametersconfig_check_cast(jsonb)Parametersconfig_check_indexes(jsonb)Parametersconfig_check_tables(jsonb)Parametersconfig_check_version(jsonb)Parametersconfig_match_default()count_encrypted_with_active_config(TEXT, TEXT)Parameterscreate_encrypted_columns()ReturnsNote⚠️ WarningVariantsdiff_config(JSONB, JSONB)Parameterseql_v2_configuration()ParametersNotehas_blake3(jsonb)ParametersReturnsVariantshas_bloom_filter(jsonb)ParametersReturnsVariantshas_hmac_256(jsonb)ParametersReturnsVariantshas_ore_block_u64_8_256(jsonb)ParametersReturnsVariantshas_ore_cllw_u64_8(jsonb)ParametersReturnsVariantshas_ore_cllw_var_8(jsonb)ParametersReturnsVariantshmac_256(eql_v2_encrypted)ParametersReturnsVariantsilike(eql_v2_encrypted, eql_v2_encrypted)Parametersis_ste_vec_array(jsonb)ParametersReturnsVariantsis_ste_vec_array()ParametersReturnsVariantsis_ste_vec_value(jsonb)ParametersReturnsVariantsjsonb_array(jsonb)ParametersReturnsNoteVariantsjsonb_array_elements(jsonb)ParametersReturnsNoteExceptionsVariantsjsonb_array_elements_text(jsonb)ParametersReturnsNoteExceptionsVariantsjsonb_array_from_array_elements(jsonb)ParametersReturnsVariantsjsonb_array_length(jsonb)ParametersReturnsNoteExceptionsVariantsjsonb_array_to_bytea_array(jsonb)Parametersjsonb_contained_by(eql_v2_encrypted, eql_v2_encrypted)ParametersReturnsVariantsjsonb_contains(eql_v2_encrypted, jsonb)ParametersReturnsVariantsjsonb_path_exists(jsonb, text)ParametersReturnsVariantsjsonb_path_query(eql_v2_encrypted, eql_v2_encrypted)ParametersReturnsVariantsjsonb_path_query_first(jsonb, text)ParametersReturnsNoteVariantslog(text, text)ParametersNoteVariantslog(text)ParametersNoteVariantsore_block_u64_8_256(jsonb)ParametersReturnsExceptionsVariantsore_block_u64_8_256_gt(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)Parametersore_block_u64_8_256_gte(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)Parametersore_block_u64_8_256_lt(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)Parametersore_block_u64_8_256_lte(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)Parametersore_block_u64_8_256_neq(eql_v2.ore_block_u64_8_256, eql_v2.ore_block_u64_8_256)Parametersore_cllw_u64_8(eql_v2_encrypted)ParametersReturnsVariantsore_cllw_var_8(eql_v2_encrypted)ParametersReturnsVariantsready_for_encryption()ReturnsNoteVariantsreload_config()ReturnsNoterename_encrypted_columns()ReturnsNote⚠️ WarningVariantsselect_pending_columns()ReturnsNoteExceptionsVariantsselect_target_columns()ReturnsNoteVariantsselector(jsonb)ParametersReturnsExceptionsVariantsste_vec(eql_v2_encrypted)ParametersReturnsVariantsste_vec_contains(eql_v2_encrypted, eql_v2_encrypted)ParametersReturnsNoteVariantsste_vec_contains(public.eql_v2_encrypted, eql_v2_encrypted)ParametersReturnsNoteVariantsto_encrypted(text)ParametersReturnsNoteVariantsto_jsonb(eql_v2_encrypted)ParametersReturnsNoteVariantsto_ste_vec_value(jsonb)ParametersReturnsVariantsPrivate Functions_encrypted_check_c(jsonb)Parameters_encrypted_check_i_ct(jsonb)Parameters_encrypted_check_v(jsonb)Parameters_first_grouped_value()Parameters