vial.db module

This module contains database layer for Vial application.

vial.db.db_get()[source]

Convenience method.

vial.db.db_query(dbmodel)[source]

Convenience method.

vial.db.db_session()[source]

Convenience method.

vial.db.db_setup(**kwargs)[source]

Opens a new database connection if there is none yet for the current application context.

Returns

Database storage handler.

Return type

flask_sqlalchemy.SQLAlchemy