mod canonical;
mod codec;
mod contract;
mod patch;
mod reader;
mod types;
#[cfg(test)]
mod tests;
#[cfg(feature = "sql")]
pub(in crate::db) use canonical::encode_input_value_for_accepted_field_contract;
pub(in crate::db) use canonical::validate_default_payload_for_accepted_field_contract;
pub(in crate::db) use canonical::{
decode_admitted_value_from_accepted_field_contract,
encode_accepted_value_ref_for_accepted_field_contract,
encode_canonical_value_for_accepted_field_contract,
};
#[cfg(test)]
pub(in crate::db) use contract::emit_raw_row_from_slot_payloads;
#[cfg(test)]
pub(in crate::db) use contract::encode_value_with_model_proposal_for_test;
pub(in crate::db) use contract::{
decode_runtime_value_from_accepted_field_contract, decode_runtime_value_from_row_contract,
};
pub(in crate::db) use patch::{
AcceptedFieldWriteProvenance, ResolvedAcceptedMutationRow,
canonical_row_from_raw_row_with_accepted_decode_contract,
canonical_row_from_raw_row_with_structural_contract,
canonical_row_from_resolved_entity_with_accepted_contract, canonical_row_from_stored_raw_row,
canonical_row_from_structural_slot_reader_with_accepted_contract,
resolve_insert_structural_patch_with_accepted_contract,
resolve_update_structural_patch_with_accepted_contract,
};
#[cfg(test)]
pub(in crate::db) use patch::{
canonical_row_from_entity_for_model_proposal_for_test,
canonical_row_from_entity_with_accepted_contract,
};
#[cfg(feature = "diagnostics")]
pub use reader::{StructuralReadMetrics, with_structural_read_metrics};
#[cfg(all(test, not(feature = "diagnostics")))]
pub(crate) use reader::{StructuralReadMetrics, with_structural_read_metrics};
pub(in crate::db) use reader::{
StructuralSlotReader, decode_dense_raw_row_with_contract,
decode_sparse_indexed_raw_row_with_contract, decode_sparse_raw_row_with_contract,
decode_sparse_required_slot_with_contract,
};
pub(in crate::db) use types::{
AcceptedMutationFieldWriteIntent, AcceptedMutationIntentPatch, CanonicalSlotReader, FieldSlot,
};
pub use types::{AuthoredStructuralPatch, PersistedRow, SlotReader};
pub use codec::{
PersistedByKindCodec, PersistedScalar, PersistedStructuralValueCodec, ScalarSlotValueRef,
ScalarValueRef, decode_persisted_option_scalar_slot_payload,
decode_persisted_option_slot_payload_by_kind, decode_persisted_scalar_slot_payload,
decode_persisted_slot_payload_by_kind, decode_persisted_structured_many_slot_payload,
decode_persisted_structured_slot_payload, encode_persisted_option_scalar_slot_payload,
encode_persisted_scalar_slot_payload, encode_persisted_slot_payload_by_kind,
encode_persisted_structured_many_slot_payload, encode_persisted_structured_slot_payload,
};