Trait ruarango::Database

source ·
pub trait Database {
    fn current<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Current>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn user<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Vec<String>>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn list<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Vec<String>>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn create<'life0, 'life1, 'async_trait>(
        &'life0 self,
        db: &'life1 Create
    ) -> Pin<Box<dyn Future<Output = ArangoResult<Response<bool>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; fn drop<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = ArangoResult<Response<bool>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; }
Expand description

Database Operations

Required Methods§

Retrieves the properties of the current database

Retrieves the list of all databases the current user can access without specifying a different username or password.

Retrieves the list of all existing databases Note: retrieving the list of databases is only possible from within the _system database. Note: You should use the GET user API to fetch the list of the available databases now.

Creates a new database Note: creating a new database is only possible from within the _system database.

Drops the database along with all data stored in it. Note: dropping a database is only possible from within the _system database. The _system database itself cannot be dropped.

Implementors§