public isConnected() as Boolean
Returns true when the connection has a live socket and is not closed.
import klyn.databases.sql.mariadb # print(cnx.isConnected())