pub struct Database { /* private fields */ }
Implementations§
Source§impl Database
impl Database
pub async fn exists(&self) -> Result<bool, ArcadeDBError<ErrorResponse>>
pub async fn drop( &self, ) -> Result<GenericResponse, ArcadeDBError<ErrorResponse>>
pub async fn create( &self, ) -> Result<GenericResponse, ArcadeDBError<ErrorResponse>>
pub async fn tx(&self) -> Result<Transaction, ArcadeDBError<ErrorResponse>>
pub fn query<'a, 'b>(&'a self, stmt: &'b str) -> Statement<'a, 'b, Database>
pub fn command<'a, 'b>(&'a self, stmt: &'b str) -> Statement<'a, 'b, Database>
pub fn name(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Database
impl !RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl !UnwindSafe for Database
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