Powered by Tachyonic Project Luxon Framework v1.4.0

Luxon Framework for rapid application development. (luxon)

Version

Python Drivers

Luxon provides Python Drivers for Mysqls and Sqlite both have a connect function to construct the connection class. As well as a custom Connection class.

Constructor

luxon.core.db.mysql.connect(*args, **kwargs)[source]

Constructor for creating a connection to the database.

Reference pep-0249.

Returns a Connection Object. It takes a number of parameters which are database dependent.

Mysql Connection

class luxon.core.db.mysql.Connection(host, username, password, database)[source]
DB_API = <module 'pymysql' from '/var/www/tachweb/github/luxon_1.2.1/lib/python3.6/site-packages/PyMySQL-0.9.3-py3.6.egg/pymysql/__init__.py'>
ping()[source]

Check if the server is alive.

Auto-Reconnect if not, and return false when reconnecting.

SQLITE Connection

class luxon.core.db.sqlite.Connection(db)[source]