sql

This module complements the sqlalchemy sql module, and contains the metadata variable, which is a global sqlalchemy.Metadata object to which all tables of the application can be added.

camelot.core.sql.transaction(original_function)[source]

Decorator for methods on an entity, to make them transactional

camelot.core.sql.update_database_from_model()[source]

Introspection the model and add missing columns in the database

this function can be ran in setup_model after setup_all(create_tables=True)

Previous topic

resources

Next topic

templates

This Page