bookclerk_library::sql_plan::host_ir

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

Domain result-selection metadata kept beside a typed bookclerk_plugin_abi::ExecuteRequest.

The planner emits bookclerk_plugin_abi::ExecuteRequest directly. This module holds only the host-side indexes used to interpret bookclerk_plugin_abi::ExecuteReply into a named crate::DbAtomicResult.

Item Kind Summary
AtomicSelection struct Host indexes into a typed atomic batch (not part of the plugin ABI).
typed_rows_to_json function Projects typed result rows onto named JSON objects for domain interpretation.

Structs

AtomicSelection

pub struct AtomicSelection {
    pub outcome_index: u32,
    pub payload_index: Option<u32>,
    pub prior_receipt_index: Option<u32>,
    pub receipt_select_index: Option<u32>,
}

Host indexes into a typed atomic batch (not part of the plugin ABI).

Fields

  • outcome_index: Index of the application-status SELECT when receipts are not used.
  • payload_index: Index of a payload SELECT when the op returns a JSON record.
  • prior_receipt_index: Index of the receipt SELECT immediately after prune (replay detect).
  • receipt_select_index: Index of the final receipt SELECT.

Implements: Clone, Debug, Default, Eq, PartialEq

Functions

typed_rows_to_json

pub fn typed_rows_to_json(columns: &[DbColumn], rows: &[DbRow]) -> Vec<Value>

Projects typed result rows onto named JSON objects for domain interpretation.

Generated from crates/bookclerk-library at main · View as Markdown