pub fn create_database<N, E>(
        &self,
        name: N,
        users: Vec<NewUser<E>>,
    ) -> Result<DatabaseSession<C>>
    where
        N: Into<String>,
        E: 'static + UserExtra + Serialize,
    {
        let core = self.core.clone();
        let connector = self.connector.clone();
        let database_name = name.into();
        self.execute(CreateDatabase::with_name_for_users(
            database_name.clone(),
            users,
        )).map(move |_| DatabaseSession::new(database_name, connector, core))
    }
/// Creates a new database with the given attributes.
///
/// If the database could be created successfully a `DatabaseSession` using
/// the just created database is returned.
///
/// The user provided with the `Connector` must have permission to access
/// the system database in order to execute this method.
///
/// # Arguments
///
/// * `name`  : the name of the database to be created
/// * `users` : a list of users to be assigned to the new database
Creates a new database with the given attributes.
If the database could be created successfully a `DatabaseSession` using
the just created database is returned.

The user provided with the `Connector` must have permission to access
the system database in order to execute this method.
Creates a new database with the given attributes . If the database could be created successfully a ` DatabaseSession ` using the just created database is returned . The user provided with the ` Connector ` must have permission to access the system database in order to execute this method .
pub fn create_database<N, E>(
        &self,
        name: N,
        users: Vec<NewUser<E>>,
    ) -> Result<DatabaseSession<C>>
    where
        N: Into<String>,
        E: 'static + UserExtra + Serialize,
    {
        let core = self.core.clone();
        let connector = self.connector.clone();
        let database_name = name.into();
        self.execute(CreateDatabase::with_name_for_users(
            database_name.clone(),
            users,
        )).map(move |_| DatabaseSession::new(database_name, connector, core))
    }
pub fn create_database < N , E > ( & self , name : N , users : Vec < NewUser < E > > , ) -> Result < DatabaseSession < C > > where N : Into < String > , E : ' static + UserExtra + Serialize , { let core = self . core . clone ( ) ; let connector = self . connector . clone ( ) ; let database_name = name . into ( ) ; self . execute ( CreateDatabase :: with_name_for_users ( database_name . clone ( ) , users , ) ) . map ( move | _ | DatabaseSession :: new ( database_name , connector , core ) ) }
Creates a new database with the given attributes.
Creates a new database with the given attributes .
&self
name
N
users
Vec<NewUser<E>>
&self
name
N
users
Vec<NewUser<E>>