'Revoke a privilege on a database from a user.
:param privilege: the privilege to revoke, one of \'read\', \'write\'
or \'all\'. The string is case-insensitive
:type privilege: str
:param database: the database to revoke the privilege on
:type database: str
:param username: the username to revoke the privilege from
:type username: str'

def revoke_privilege(self, privilege, database, username):

    text = u'REVOKE    {0}    ON    {1}    FROM    {2}'.format(privilege, quote_ident(database), quote_ident(username))
    self.query(text)
