Set current db. :param db: The name of the db.
(self, db)
| 524 | return result.rows |
| 525 | |
| 526 | def select_db(self, db): |
| 527 | """ |
| 528 | Set current db. |
| 529 | |
| 530 | :param db: The name of the db. |
| 531 | """ |
| 532 | self._execute_command(COMMAND.COM_INIT_DB, db) |
| 533 | self._read_ok_packet() |
| 534 | |
| 535 | def escape(self, obj, mapping=None) -> str: |
| 536 | """Escape whatever value is passed. |