pub trait RuntimeEntityPortCtx: RuntimeEntityPort {
// Provided methods
fn create_row_ctx(
&self,
ctx: &OperationContext,
input: CreateRowInput,
) -> RedDBResult<CreateEntityOutput> { ... }
fn create_node_ctx(
&self,
ctx: &OperationContext,
input: CreateNodeInput,
) -> RedDBResult<CreateEntityOutput> { ... }
fn create_edge_ctx(
&self,
ctx: &OperationContext,
input: CreateEdgeInput,
) -> RedDBResult<CreateEntityOutput> { ... }
fn create_vector_ctx(
&self,
ctx: &OperationContext,
input: CreateVectorInput,
) -> RedDBResult<CreateEntityOutput> { ... }
fn create_document_ctx(
&self,
ctx: &OperationContext,
input: CreateDocumentInput,
) -> RedDBResult<CreateEntityOutput> { ... }
fn create_kv_ctx(
&self,
ctx: &OperationContext,
input: CreateKvInput,
) -> RedDBResult<CreateEntityOutput> { ... }
fn create_timeseries_point_ctx(
&self,
ctx: &OperationContext,
input: CreateTimeSeriesPointInput,
) -> RedDBResult<CreateEntityOutput> { ... }
fn get_kv_ctx(
&self,
ctx: &OperationContext,
collection: &str,
key: &str,
) -> RedDBResult<Option<(Value, EntityId)>> { ... }
fn delete_kv_ctx(
&self,
ctx: &OperationContext,
collection: &str,
key: &str,
) -> RedDBResult<bool> { ... }
fn patch_entity_ctx(
&self,
ctx: &OperationContext,
input: PatchEntityInput,
) -> RedDBResult<CreateEntityOutput> { ... }
fn delete_entity_ctx(
&self,
ctx: &OperationContext,
input: DeleteEntityInput,
) -> RedDBResult<DeleteEntityOutput> { ... }
}Expand description
Context-aware extension trait that mirrors RuntimeEntityPort
with &OperationContext threaded through every method.
This is the migration runway for the OperationContext deepening
(PLAN cluster 6). Each default implementation forwards to the
existing context-less method, so today the trait is a pure
pass-through — but new callers can already adopt the
context-passing surface, and a future PR will replace the
defaults with real impls that read ctx.xid / ctx.write_consent.
Hidden behind the ctx-ports feature flag during the migration
window so the impl bloat doesn’t burden default builds. Once
every port is migrated, the flag goes away and these traits
become the only surface.
Provided Methods§
fn create_row_ctx( &self, ctx: &OperationContext, input: CreateRowInput, ) -> RedDBResult<CreateEntityOutput>
fn create_node_ctx( &self, ctx: &OperationContext, input: CreateNodeInput, ) -> RedDBResult<CreateEntityOutput>
fn create_edge_ctx( &self, ctx: &OperationContext, input: CreateEdgeInput, ) -> RedDBResult<CreateEntityOutput>
fn create_vector_ctx( &self, ctx: &OperationContext, input: CreateVectorInput, ) -> RedDBResult<CreateEntityOutput>
fn create_document_ctx( &self, ctx: &OperationContext, input: CreateDocumentInput, ) -> RedDBResult<CreateEntityOutput>
fn create_kv_ctx( &self, ctx: &OperationContext, input: CreateKvInput, ) -> RedDBResult<CreateEntityOutput>
fn create_timeseries_point_ctx( &self, ctx: &OperationContext, input: CreateTimeSeriesPointInput, ) -> RedDBResult<CreateEntityOutput>
fn get_kv_ctx( &self, ctx: &OperationContext, collection: &str, key: &str, ) -> RedDBResult<Option<(Value, EntityId)>>
fn delete_kv_ctx( &self, ctx: &OperationContext, collection: &str, key: &str, ) -> RedDBResult<bool>
fn patch_entity_ctx( &self, ctx: &OperationContext, input: PatchEntityInput, ) -> RedDBResult<CreateEntityOutput>
fn delete_entity_ctx( &self, ctx: &OperationContext, input: DeleteEntityInput, ) -> RedDBResult<DeleteEntityOutput>
Implementors§
impl<T: RuntimeEntityPort + ?Sized> RuntimeEntityPortCtx for T
Blanket impl: every concrete RuntimeEntityPort automatically
gains the context-aware surface via the default forwards above.