(cur: Cursor)
| 115 | |
| 116 | |
| 117 | def 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 | |
| 133 | def get_server_timezone(variables: dict[str, Any]) -> str: |