Skip to main content

QueryTransaction

Struct QueryTransaction 

Source
pub struct QueryTransaction {
    pub identity: IdentityId,
    /* private fields */
}

Fields§

§identity: IdentityId

Implementations§

Source§

impl QueryTransaction

Source

pub fn new( multi: MultiReadTransaction, single: SingleTransaction, identity: IdentityId, ) -> Self

Source

pub fn read_only(multi: MultiReadTransaction, identity: IdentityId) -> Self

Source

pub fn set_executor(&mut self, executor: Arc<dyn RqlExecutor>)

Source

pub fn rql(&mut self, rql: &str, params: Params) -> ExecutionResult

Source

pub fn version(&self) -> CommitVersion

Source

pub fn id(&self) -> TransactionId

Source

pub fn get<K: Into<TaggedKey> + Clone>( &mut self, key: &K, ) -> Result<Option<MultiVersionRow<TaggedKey>>>

Source

pub fn contains<K: Into<TaggedKey> + Clone>(&mut self, key: &K) -> Result<bool>

Source

pub fn prefix( &mut self, prefix: &EncodedKey, ) -> Result<MultiVersionBatch<TaggedKey>>

Source

pub fn prefix_rev( &mut self, prefix: &EncodedKey, ) -> Result<MultiVersionBatch<TaggedKey>>

Source

pub fn read_as_of_version_exclusive( &mut self, version: CommitVersion, ) -> Result<()>

Source

pub fn range( &self, range: TaggedKeyBoundRange, scope: RangeScope, batch_size: usize, ) -> Box<dyn Iterator<Item = Result<MultiVersionRow<TaggedKey>>> + Send + '_>

Source

pub fn range_row( &self, storage: StorageId, start: Bound<StorageRowKey>, end: Bound<StorageRowKey>, scope: RangeScope, batch_size: usize, ) -> Box<dyn Iterator<Item = Result<MultiVersionRow<StorageRowKey>>> + Send + '_>

Source

pub fn range_partitioned_row( &self, storage: StorageId, start: Bound<StoragePartitionedRowKey>, end: Bound<StoragePartitionedRowKey>, scope: RangeScope, batch_size: usize, ) -> Box<dyn Iterator<Item = Result<MultiVersionRow<StoragePartitionedRowKey>>> + Send + '_>

Source

pub fn range_rev( &self, range: TaggedKeyBoundRange, scope: RangeScope, batch_size: usize, ) -> Box<dyn Iterator<Item = Result<MultiVersionRow<TaggedKey>>> + Send + '_>

Source

pub fn begin_single_query<'a, I>( &self, keys: I, ) -> Result<SingleReadTransaction<'_>>
where I: IntoIterator<Item = &'a EncodedKey>,

Trait Implementations§

Source§

impl<'a> From<&'a mut QueryTransaction> for Transaction<'a>

Source§

fn from(txn: &'a mut QueryTransaction) -> Self

Converts to this type from the input type.
Source§

impl TransactionalAuthenticationChanges for QueryTransaction

Source§

impl TransactionalBindingChanges for QueryTransaction

Source§

fn find_binding(&self, _id: BindingId) -> Option<&Binding>

Source§

fn find_binding_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&Binding>

Source§

fn is_binding_deleted(&self, _id: BindingId) -> bool

Source§

fn is_binding_deleted_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> bool

Source§

impl TransactionalChanges for QueryTransaction

Source§

impl TransactionalColumnSnapshotChanges for QueryTransaction

Source§

impl TransactionalDictionaryChanges for QueryTransaction

Source§

impl TransactionalFlowChanges for QueryTransaction

Source§

fn find_flow(&self, _id: FlowId) -> Option<&Flow>

Source§

fn find_flow_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&Flow>

Source§

fn is_flow_deleted(&self, _id: FlowId) -> bool

Source§

fn is_flow_deleted_by_name(&self, _namespace: NamespaceId, _name: &str) -> bool

Source§

impl TransactionalGrantedRoleChanges for QueryTransaction

Source§

impl TransactionalHandlerChanges for QueryTransaction

Source§

fn find_handler_by_id(&self, _id: HandlerId) -> Option<&Handler>

Source§

fn find_handler_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&Handler>

Source§

fn is_handler_deleted(&self, _id: HandlerId) -> bool

Source§

fn is_handler_deleted_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> bool

Source§

impl TransactionalIdentityAttributeChanges for QueryTransaction

Source§

impl TransactionalIdentityAttributeValueChanges for QueryTransaction

Source§

impl TransactionalIdentityChanges for QueryTransaction

Source§

impl TransactionalMigrationChanges for QueryTransaction

Source§

impl TransactionalNamespaceChanges for QueryTransaction

Source§

impl TransactionalOperatorSettingsChanges for QueryTransaction

Source§

impl TransactionalPolicyChanges for QueryTransaction

Source§

impl TransactionalProcedureChanges for QueryTransaction

Source§

impl TransactionalQueueChanges for QueryTransaction

Source§

fn find_queue(&self, _id: QueueId) -> Option<&Queue>

Source§

fn find_queue_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&Queue>

Source§

fn is_queue_deleted(&self, _id: QueueId) -> bool

Source§

fn is_queue_deleted_by_name(&self, _namespace: NamespaceId, _name: &str) -> bool

Source§

impl TransactionalRelationshipChanges for QueryTransaction

Source§

fn find_relationship(&self, _id: RelationshipId) -> Option<&Relationship>

Source§

fn find_relationship_by_name( &self, _namespace: NamespaceId, _source_table: TableId, _name: &str, ) -> Option<&Relationship>

Source§

fn is_relationship_deleted(&self, _id: RelationshipId) -> bool

Source§

fn is_relationship_deleted_by_name( &self, _namespace: NamespaceId, _source_table: TableId, _name: &str, ) -> bool

Source§

impl TransactionalRingBufferChanges for QueryTransaction

Source§

impl TransactionalRoleChanges for QueryTransaction

Source§

fn find_role(&self, _id: RoleId) -> Option<&Role>

Source§

fn find_role_by_name(&self, _name: &str) -> Option<&Role>

Source§

fn is_role_deleted(&self, _id: RoleId) -> bool

Source§

fn is_role_deleted_by_name(&self, _name: &str) -> bool

Source§

impl TransactionalRowSettingsChanges for QueryTransaction

Source§

impl TransactionalSeriesChanges for QueryTransaction

Source§

fn find_series(&self, _id: SeriesId) -> Option<&Series>

Source§

fn find_series_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&Series>

Source§

fn is_series_deleted(&self, _id: SeriesId) -> bool

Source§

fn is_series_deleted_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> bool

Source§

impl TransactionalSinkChanges for QueryTransaction

Source§

fn find_sink(&self, _id: SinkId) -> Option<&Sink>

Source§

fn find_sink_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&Sink>

Source§

fn is_sink_deleted_by_name(&self, _namespace: NamespaceId, _name: &str) -> bool

Source§

impl TransactionalSourceChanges for QueryTransaction

Source§

fn find_source(&self, _id: SourceId) -> Option<&Source>

Source§

fn find_source_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&Source>

Source§

fn is_source_deleted_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> bool

Source§

impl TransactionalSumTypeChanges for QueryTransaction

Source§

fn find_sumtype(&self, _id: SumTypeId) -> Option<&SumType>

Source§

fn find_sumtype_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&SumType>

Source§

fn is_sumtype_deleted(&self, _id: SumTypeId) -> bool

Source§

fn is_sumtype_deleted_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> bool

Source§

impl TransactionalTableChanges for QueryTransaction

Source§

fn find_table(&self, _id: TableId) -> Option<&Table>

Source§

fn find_table_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&Table>

Source§

fn is_table_deleted(&self, _id: TableId) -> bool

Source§

fn is_table_deleted_by_name(&self, _namespace: NamespaceId, _name: &str) -> bool

Source§

impl TransactionalTestChanges for QueryTransaction

Source§

fn find_test(&self, _id: TestId) -> Option<&Test>

Source§

fn find_test_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&Test>

Source§

fn is_test_deleted(&self, _id: TestId) -> bool

Source§

fn is_test_deleted_by_name(&self, _namespace: NamespaceId, _name: &str) -> bool

Source§

impl TransactionalViewChanges for QueryTransaction

Source§

fn find_view(&self, _id: ViewId) -> Option<&View>

Source§

fn find_view_by_name( &self, _namespace: NamespaceId, _name: &str, ) -> Option<&View>

Source§

fn is_view_deleted(&self, _id: ViewId) -> bool

Source§

fn is_view_deleted_by_name(&self, _namespace: NamespaceId, _name: &str) -> bool

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more