MCPcopy Create free account
hub / github.com/dbcli/mycli / character_sets

Method character_sets

mycli/sqlexecute.py:488–500  ·  view source on GitHub ↗

Yields tuples of (character_set_name, )

(self)

Source from the content-addressed store, hash-verified

486 yield from cur
487
488 def character_sets(self) -> Generator[tuple, None, None]:
489 """Yields tuples of (character_set_name, )"""
490
491 assert isinstance(self.conn, Connection)
492 with self.conn.cursor() as cur:
493 _logger.debug("Character sets Query. sql: %r", self.character_sets_query)
494 try:
495 cur.execute(self.character_sets_query)
496 except pymysql.DatabaseError as e:
497 _logger.error('No character_set completions due to %r', e)
498 yield ()
499 else:
500 yield from cur
501
502 def collations(self) -> Generator[tuple, None, None]:
503 """Yields tuples of (collation_name, )"""

Calls 4

cursorMethod · 0.45
debugMethod · 0.45
executeMethod · 0.45
errorMethod · 0.45