registry.services.datastore.util module

registry.services.datastore.util.create_all()[source]

Create all tables in the database.

Return type:None
registry.services.datastore.util.current_session()[source]

Get/create database session for this context.

Return type:Session
registry.services.datastore.util.drop_all()[source]

Drop all tables in the database.

Return type:None
registry.services.datastore.util.init_app(app=None)[source]

Set default configuration parameters for an application instance.

Return type:None
registry.services.datastore.util.transaction(commit=True)[source]

Context manager for database transaction.

Return type:Generator[+T_co, -T_contra, +V_co]