TableDef

class tollan.utils.db.TableDef[source]

Bases: tollan.utils.namespace.Namespace

A class that holds definitions to a table.

Methods Summary

init_table(db)

Setup table metadata for this table def in db.

Methods Documentation

init_table(db)[source]

Setup table metadata for this table def in db.

Parameters
dbSqlaDB or SQLAlchemy

The db instance to which this table is added.