use crate::error::LiteError;
pub(super) fn resolve_write() -> LiteError {
LiteError::Unsupported {
detail: "KvOp::ResolveWrite is the resolve-before-propose wire shape \
of Origin's cross-vshard write path, which Lite's single-node \
engine never emits or needs to interpret"
.into(),
}
}
pub(super) fn resolved_write() -> LiteError {
LiteError::Unsupported {
detail: "KvOp::ResolvedWrite replays a decision made by Origin's Raft \
leader, which has no equivalent on the single-node Lite engine"
.into(),
}
}
pub(super) fn predicate_update(collection: &str) -> LiteError {
LiteError::Unsupported {
detail: format!(
"KvOp::PredicateUpdate on {collection}: Lite's SQL visitor always \
resolves WHERE to an explicit key list before building a KvOp"
),
}
}
pub(super) fn predicate_delete(collection: &str) -> LiteError {
LiteError::Unsupported {
detail: format!(
"KvOp::PredicateDelete on {collection}: Lite's SQL visitor always \
resolves WHERE to an explicit key list before building a KvOp"
),
}
}
pub(super) fn sorted_index_txn_read(collection: &str) -> LiteError {
LiteError::Unsupported {
detail: format!(
"KvOp::SortedIndexTxnRead on {collection}: the transaction-local \
sorted-index read runs over Origin's Data Plane staging overlay, \
which Lite's single-node engine does not have"
),
}
}