pub fn grant_database_access<N, Db>(
        &self,
        username: N,
        database: Db,
        permission: Permission,
    ) -> Result<Empty>
    where
        N: Into<String>,
        Db: Into<String>,
    {
        self.execute(SetDatabaseAccessLevel::new(
            username.into(),
            database.into(),
            permission,
        ))
    }
/// Grants access to the specified database for the given user.
///
/// The user set in the `Connector` must have permission to write to the
/// system database in order to execute this method.
///
/// # Arguments
///
/// * `username` : the name of the user for which access shall be granted
/// * `database` : the name of the database to which access shall be granted
/// * `permission` : the access level that shall be granted
Grants access to the specified database for the given user.
The user set in the `Connector` must have permission to write to the
system database in order to execute this method.
Grants access to the specified database for the given user . The user set in the ` Connector ` must have permission to write to the system database in order to execute this method .
pub fn grant_database_access<N, Db>(
        &self,
        username: N,
        database: Db,
        permission: Permission,
    ) -> Result<Empty>
    where
        N: Into<String>,
        Db: Into<String>,
    {
        self.execute(SetDatabaseAccessLevel::new(
            username.into(),
            database.into(),
            permission,
        ))
    }
pub fn grant_database_access < N , Db > ( & self , username : N , database : Db , permission : Permission , ) -> Result < Empty > where N : Into < String > , Db : Into < String > , { self . execute ( SetDatabaseAccessLevel :: new ( username . into ( ) , database . into ( ) , permission , ) ) }
Grants access to the specified database for the given user.
Grants access to the specified database for the given user .
&self
username
N
database
Db
permission
Permission
&self
username
N
database
Db
permission
Permission