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§
sourcefn 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 current<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ArangoResult<Response<Current>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves the properties of the current database
sourcefn 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 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,
Retrieves the list of all databases the current user can access without specifying a different username or password.
sourcefn 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 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,
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.
sourcefn 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 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,
Creates a new database Note: creating a new database is only possible from within the _system database.
sourcefn 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,
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,
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.