pub struct Database {
pub name: String,
pub connection: ArangoConnection,
}Fields§
§name: String§connection: ArangoConnectionImplementations§
Source§impl Database
impl Database
Sourcepub async fn create_collection(
&self,
local_name: &str,
collection_type: CollectionType,
)
pub async fn create_collection( &self, local_name: &str, collection_type: CollectionType, )
ⓘ
create_collection("collection_name", arangoq::CollectionType::Document).await;pub async fn list_collections(&self) -> Vec<Collection>
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