pub trait MutationTupleMetadata: Sync {
// Required methods
fn table_relation_oid(&self, table: &str) -> Result<i64, SQLError>;
fn document_metadata(
&self,
table: &str,
doc_id: DocId,
) -> Result<Option<DocumentMetadata>, SQLError>;
fn tuple_version_xid(&self) -> Result<u32, SQLError>;
}Expand description
Tuple provenance from the statement’s read generation and write transaction.
Required Methods§
Sourcefn table_relation_oid(&self, table: &str) -> Result<i64, SQLError>
fn table_relation_oid(&self, table: &str) -> Result<i64, SQLError>
Read the canonically bound storage relation identity without constructing a database-wide catalog for each row image.
fn document_metadata( &self, table: &str, doc_id: DocId, ) -> Result<Option<DocumentMetadata>, SQLError>
fn tuple_version_xid(&self) -> Result<u32, SQLError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".