(self, username)
| 66 | self._db_connection.execute('DELETE FROM users') |
| 67 | |
| 68 | def get(self, username): |
| 69 | cursor = self._db_connection.execute( |
| 70 | 'SELECT username, auth_role, credentials_last_changed' |
| 71 | ' FROM users WHERE username=? LIMIT 1', [username]) |
| 72 | row = cursor.fetchone() |
| 73 | if not row: |
| 74 | raise UserDoesNotExistError(f'User does not exist: {username}') |
| 75 | return row[0], row[1], row[2] |
| 76 | |
| 77 | def get_all(self): |
| 78 | cursor = self._db_connection.execute( |