database connections

Should I check a MySQL connection before every query?

When reusing a mysql.connector connection in a WSGI application, should I call db.is_connected() before every SQL statement, or does the connector handle disconnected connections automatically? If the connection…