pub struct TypeDBFixture { /* private fields */ }Methods from Deref<Target = TypeDBDriver>§
pub const DEFAULT_ADDRESS: &'static str = "localhost:1729"
pub fn databases(&self) -> &DatabaseManager
pub fn users(&self) -> &UserManager
Sourcepub async fn transaction(
&self,
database_name: impl AsRef<str>,
transaction_type: TransactionType,
) -> Result<Transaction, Error>
pub async fn transaction( &self, database_name: impl AsRef<str>, transaction_type: TransactionType, ) -> Result<Transaction, Error>
Opens a transaction with default options.
See TypeDBDriver::transaction_with_options
Sourcepub async fn transaction_with_options(
&self,
database_name: impl AsRef<str>,
transaction_type: TransactionType,
options: TransactionOptions,
) -> Result<Transaction, Error>
pub async fn transaction_with_options( &self, database_name: impl AsRef<str>, transaction_type: TransactionType, options: TransactionOptions, ) -> Result<Transaction, Error>
Performs a TypeQL query in this transaction.
§Arguments
database_name— The name of the database to connect totransaction_type— The TransactionType to open the transaction withoptions— The TransactionOptions to open the transaction with
§Examples
transaction.transaction_with_options(database_name, transaction_type, options)Trait Implementations§
Source§impl Clone for TypeDBFixture
impl Clone for TypeDBFixture
Source§fn clone(&self) -> TypeDBFixture
fn clone(&self) -> TypeDBFixture
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeDBFixture
impl Debug for TypeDBFixture
Source§impl Deref for TypeDBFixture
impl Deref for TypeDBFixture
Source§impl Drop for TypeDBFixture
impl Drop for TypeDBFixture
Source§impl StaticFixture for TypeDBFixture
impl StaticFixture for TypeDBFixture
Source§fn set_up_once() -> Result<Self>
fn set_up_once() -> Result<Self>
Factory method of the
StaticFixture. Read moreimpl RefUnwindSafe for TypeDBFixture
Auto Trait Implementations§
impl Freeze for TypeDBFixture
impl Send for TypeDBFixture
impl Sync for TypeDBFixture
impl Unpin for TypeDBFixture
impl !UnwindSafe for TypeDBFixture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request