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

Function get_ssl_cipher

mycli/packages/special/utils.py:117–130  ·  view source on GitHub ↗
(cur: Cursor)

Source from the content-addressed store, hash-verified

115
116
117def get_ssl_cipher(cur: Cursor) -> str | None:
118 query = 'SHOW STATUS LIKE "Ssl_cipher"'
119 logger.debug(query)
120
121 ssl_cipher = None
122
123 try:
124 cur.execute(query)
125 if one := cur.fetchone():
126 ssl_cipher = one[1] or None
127 except pymysql.err.OperationalError:
128 pass
129
130 return ssl_cipher
131
132
133def get_server_timezone(variables: dict[str, Any]) -> str:

Calls 3

debugMethod · 0.45
executeMethod · 0.45
fetchoneMethod · 0.45