connected? — Checks whether the connection is open
databaseObj.connected?
#connected? checks whether the database connection is open. It returns true if it is open and false if it is not.