Database - cihai.db

Cihai core functionality.

class cihai.db.Database(config)[source]

Bases: object

Cihai SQLAlchemy instance.

base: AutomapBase

sqlalchemy.ext.automap.AutomapBase instance.

engine: Engine

sqlalchemy.engine.Engine instance.

metadata: MetaData

sqlalchemy.schema.MetaData instance.

session: Session

sqlalchemy.orm.session.Session instance.


No-op to reflect db info.

This is available as a method so the database can be reflected outside initialization (such bootstrapping unihan during CLI usage).

Return type: