Skip to main content

Module dml_helpers

Module dml_helpers 

Source
Expand description

DML planning helpers, split by concern:

  • [value_convert] — ast::Expr -> SqlValue conversion
  • [range_check] — declared-width coercion + range validation
  • [insert_columns] — positional-insert column resolution
  • [ast_extract] — table-name / primary-key point-lookup extraction
  • [declared_defaults] — declared column DEFAULT materialization
  • [vector_primary_insert] — vector-primary collection insert plans
  • [vector_primary_dml] — vector-primary collection update / delete / truncate plans
  • [kv_insert] — KV engine insert plans
  • [kv_counter] — the row a KV counter atomic creates for an absent key
  • [insert_select_bind] — INSERT ... SELECT target-column binding
  • [params] — parameter structs for the helpers above

Enums§

KvCounterFreshRow
The row a counter atomic creates for an absent key.
KvCounterKind
The kind of number a counter atomic moves.

Functions§

extract_point_keys
Extract point-operation keys from WHERE clause (WHERE pk = literal OR pk IN (…)).
plan_kv_counter_fresh_row
Plan the row INSERT (key, column) VALUES (key, 0) stores in the KV collection info, for a counter of kind.