bookclerk_library::sql_plan::host_ir
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. |
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-statusSELECTwhen receipts are not used.payload_index: Index of a payloadSELECTwhen the op returns a JSON record.prior_receipt_index: Index of the receiptSELECTimmediately after prune (replay detect).receipt_select_index: Index of the final receiptSELECT.
Implements: Clone, Debug, Default, Eq, PartialEq
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