beacon.db package

Submodules

beacon.db.models module

class beacon.db.models.Base(**kwargs)

Bases: object

Column Type
RealNameID Integer
NickNameID String(100)
_decl_class_registry = <WeakValueDictionary>
metadata = MetaData(bind=None)
class beacon.db.models.Name(real_name=None, nick_names=None)[source]

Bases: sqlalchemy.ext.declarative.api.Base

A model to represent a first name and its alternative names (i.e. nicknames)

Column Type
ID Integer
RealName String(100)
_sa_class_manager = <ClassManager of <class 'beacon.db.models.Name'> at 10c46cdd0>
id
nick_names
real_name
real_names

Module contents

beacon.db.create_db()[source]

Initialize the database and populate the Names table.

beacon.db.db_connect()[source]

Scope our db session around our transactional operations

beacon.db.destroy_db()[source]

Drop all database tables

beacon.db.init_db()[source]

Create all database tables