Here are defined the schemas for the principal and readonly databases, as well as some useful mixin classes.
Principal Database Schema (
Defines the get_schema function for the principal database, which represents the “ground truth” of the knowledge we aggregate.
Readonly Database Schema (
Defines the get_schema function for the readonly database, which is used by external services to access the Statement knowledge we acquire.
Class Mix-ins (
This defines class mixins that are used to add general features to SQLAlchemy table objects via multiple inheritance.
This defines the classes needed to create and maintain indices in the database, the other part of the infrastructure of which is included in the IndraDBTable class mixin definition.