Table A.2, “Database Methods” contains the exhaustive list of methods, in alphabetical order. The documentation of each method follows.
open() opens a connection to a database.
def open(host, db, username, password, driver)
host: the database host.
db: the database name.
username: the username.
password: the password.
driver: the driver name.
close() closes the database connection.
error() returns a string containing the last error.
query() returns a new query object bound to this database.