Set current db. :param db: The name of the db.
(self, db)
| 519 | return result.rows |
| 520 | |
| 521 | def select_db(self, db): |
| 522 | """ |
| 523 | Set current db. |
| 524 | |
| 525 | :param db: The name of the db. |
| 526 | """ |
| 527 | self._execute_command(COMMAND.COM_INIT_DB, db) |
| 528 | self._read_ok_packet() |
| 529 | |
| 530 | def escape(self, obj, mapping=None): |
| 531 | """Escape whatever value is passed. |