TableDefList

class tollan.utils.db.TableDefList(table_defs)[source]

Bases: ObjectProxy

Methods Summary

init_db(db)

Setup tables defined in this TableDefList in db.

Methods Documentation

init_db(db)[source]

Setup tables defined in this TableDefList in db.

Note

The db.metadata.create_all() is not called.

Parameters
dbSqlaDB or SQLAlchemy

The db instance to which this table is added.