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

Method collations

mycli/sqlexecute.py:502–514  ·  view source on GitHub ↗

Yields tuples of (collation_name, )

(self)

Source from the content-addressed store, hash-verified

500 yield from cur
501
502 def collations(self) -> Generator[tuple, None, None]:
503 """Yields tuples of (collation_name, )"""
504
505 assert isinstance(self.conn, Connection)
506 with self.conn.cursor() as cur:
507 _logger.debug("Collations Query. sql: %r", self.collations_query)
508 try:
509 cur.execute(self.collations_query)
510 except pymysql.DatabaseError as e:
511 _logger.error('No collations completions due to %r', e)
512 yield ()
513 else:
514 yield from cur
515
516 def show_candidates(self) -> Generator[tuple, None, None]:
517 assert isinstance(self.conn, Connection)

Calls 4

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