MCPcopy
hub / github.com/PyMySQL/PyMySQL / select_db

Method select_db

pymysql/connections.py:521–528  ·  view source on GitHub ↗

Set current db. :param db: The name of the db.

(self, db)

Source from the content-addressed store, hash-verified

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.

Callers 1

test_select_dbMethod · 0.80

Calls 2

_execute_commandMethod · 0.95
_read_ok_packetMethod · 0.95

Tested by 1

test_select_dbMethod · 0.64