Struct warpgrapher::engine::database::no_database::NoTransaction
source · [−]pub struct NoTransaction {}
Trait Implementations
sourceimpl Transaction for NoTransaction
impl Transaction for NoTransaction
fn begin<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn execute_query<'life0, 'async_trait, RequestCtx>(
&'life0 mut self,
_query: String,
_params: HashMap<String, Value>
) -> Pin<Box<dyn Future<Output = Result<QueryResult, Error>> + Send + 'async_trait>> where
RequestCtx: 'async_trait + RequestContext,
'life0: 'async_trait,
Self: 'async_trait,
fn create_node<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, RequestCtx>(
&'life0 mut self,
_node_var: &'life1 NodeQueryVar,
_props: HashMap<String, Value>,
_partition_key_opt: Option<&'life2 Value>,
_info: &'life3 Info,
_sg: &'life4 mut SuffixGenerator
) -> Pin<Box<dyn Future<Output = Result<Node<RequestCtx>, Error>> + Send + 'async_trait>> where
RequestCtx: 'async_trait + RequestContext,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn create_rels<'life0, 'life1, 'life2, 'life3, 'async_trait, RequestCtx>(
&'life0 mut self,
_src_query_fragment: QueryFragment,
_dst_query_fragment: QueryFragment,
_rel_var: &'life1 RelQueryVar,
_id_opt: Option<Value>,
_props: HashMap<String, Value>,
_partition_key_opt: Option<&'life2 Value>,
_sg: &'life3 mut SuffixGenerator
) -> Pin<Box<dyn Future<Output = Result<Vec<Rel<RequestCtx>>, Error>> + Send + 'async_trait>> where
RequestCtx: 'async_trait + RequestContext,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn node_read_by_ids_fragment<RequestCtx: RequestContext>(
&mut self,
_node_var: &NodeQueryVar,
_nodes: &[Node<RequestCtx>]
) -> Result<QueryFragment, Error>
fn node_read_fragment(
&mut self,
_rel_query_fragments: Vec<QueryFragment>,
_node_var: &NodeQueryVar,
_props: HashMap<String, Comparison>,
_sg: &mut SuffixGenerator
) -> Result<QueryFragment, Error>
fn load_nodes<'life0, 'life1, 'life2, 'async_trait, RequestCtx>(
&'life0 mut self,
_keys: &'life1 [NodeLoaderKey],
_info: &'life2 Info
) -> Pin<Box<dyn Future<Output = Result<Vec<Node<RequestCtx>>, Error>> + Send + 'async_trait>> where
RequestCtx: 'async_trait + RequestContext,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn read_nodes<'life0, 'life1, 'life2, 'life3, 'async_trait, RequestCtx>(
&'life0 mut self,
_node_var: &'life1 NodeQueryVar,
_query_fragment: QueryFragment,
_partition_key_opt: Option<&'life2 Value>,
_info: &'life3 Info
) -> Pin<Box<dyn Future<Output = Result<Vec<Node<RequestCtx>>, Error>> + Send + 'async_trait>> where
RequestCtx: 'async_trait + RequestContext,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn rel_read_by_ids_fragment<RequestCtx: RequestContext>(
&mut self,
_rel_var: &RelQueryVar,
_rels: &[Rel<RequestCtx>]
) -> Result<QueryFragment, Error>
fn rel_read_fragment(
&mut self,
_src_fragment_opt: Option<QueryFragment>,
_dst_fragment_opt: Option<QueryFragment>,
_rel_var: &RelQueryVar,
_props: HashMap<String, Comparison>,
_sg: &mut SuffixGenerator
) -> Result<QueryFragment, Error>
fn load_rels<'life0, 'life1, 'async_trait, RequestCtx>(
&'life0 mut self,
_keys: &'life1 [RelLoaderKey]
) -> Pin<Box<dyn Future<Output = Result<Vec<Rel<RequestCtx>>, Error>> + Send + 'async_trait>> where
RequestCtx: 'async_trait + RequestContext,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn read_rels<'life0, 'life1, 'life2, 'async_trait, RequestCtx>(
&'life0 mut self,
_query_fragment: QueryFragment,
_rel_var: &'life1 RelQueryVar,
_partition_key_opt: Option<&'life2 Value>
) -> Pin<Box<dyn Future<Output = Result<Vec<Rel<RequestCtx>>, Error>> + Send + 'async_trait>> where
RequestCtx: 'async_trait + RequestContext,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn update_nodes<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, RequestCtx>(
&'life0 mut self,
_query_fragment: QueryFragment,
_node_var: &'life1 NodeQueryVar,
_props: HashMap<String, Value>,
_partition_key_opt: Option<&'life2 Value>,
_info: &'life3 Info,
_sg: &'life4 mut SuffixGenerator
) -> Pin<Box<dyn Future<Output = Result<Vec<Node<RequestCtx>>, Error>> + Send + 'async_trait>> where
RequestCtx: 'async_trait + RequestContext,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn update_rels<'life0, 'life1, 'life2, 'life3, 'async_trait, RequestCtx>(
&'life0 mut self,
_query_fragment: QueryFragment,
_rel_var: &'life1 RelQueryVar,
_props: HashMap<String, Value>,
_partition_key_opt: Option<&'life2 Value>,
_sg: &'life3 mut SuffixGenerator
) -> Pin<Box<dyn Future<Output = Result<Vec<Rel<RequestCtx>>, Error>> + Send + 'async_trait>> where
RequestCtx: 'async_trait + RequestContext,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn delete_nodes<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_query_fragment: QueryFragment,
_node_var: &'life1 NodeQueryVar,
_partition_key_opt: Option<&'life2 Value>
) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn delete_rels<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_query_fragment: QueryFragment,
_rel_var: &'life1 RelQueryVar,
_partition_key_opt: Option<&'life2 Value>
) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn commit<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn rollback<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl RefUnwindSafe for NoTransaction
impl Send for NoTransaction
impl Sync for NoTransaction
impl Unpin for NoTransaction
impl UnwindSafe for NoTransaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more