Selecto.Advanced.JsonOperations.Spec (Selecto v0.3.14)

Specification for JSON operations in SELECT, WHERE, and other clauses.

Link to this section Summary

Link to this section Types

Link to this type

operation_type()

@type operation_type() ::
  :json_extract
  | :json_extract_text
  | :json_extract_path
  | :json_extract_path_text
  | :json_contains
  | :json_contained
  | :json_exists
  | :json_path_exists
  | :json_agg
  | :json_object_agg
  | :jsonb_agg
  | :jsonb_object_agg
  | :json_build_object
  | :json_build_array
  | :jsonb_build_object
  | :jsonb_build_array
  | :json_set
  | :jsonb_set
  | :json_insert
  | :jsonb_insert
  | :json_remove
  | :jsonb_delete
  | :jsonb_delete_path
  | :json_typeof
  | :jsonb_typeof
  | :json_array_length
  | :jsonb_array_length
@type t() :: %Selecto.Advanced.JsonOperations.Spec{
  alias: String.t() | nil,
  column: String.t(),
  id: String.t(),
  key_field: String.t() | nil,
  operation: operation_type(),
  options: map(),
  path: String.t() | nil,
  validated: boolean(),
  value: term() | nil,
  value_field: String.t() | nil
}