Database Connection

We made some monkeypatch for peewee and playhouse.flask_utils in order to better support the integration with Flask.

class flask_datatables.database.DataTable(app=None, database=None, model_class=None)[source]

Bases: playhouse.flask_utils.FlaskDB

Server-side processing integration with DataTables.

Parameters
init_app(app)[source]

Initialise the DataTables with the Flask application.

Parameters

app (Flask) – flask.Flask instance to integrate DataTables.

Return type

None

base_model_class: Model

Base class for data models.

database: Database

Database connection instance.