Package loglan_db
This module contains functions and variables for initializing application and db
Sub-modules
loglan_db.model
-
This module contains a default LOD dictionary model for a SQL database.
loglan_db.model_db
-
This module contains a basic LOD dictionary model for a SQL database. Each class is a detailed description of a db table: Authors, Events, Keys, …
loglan_db.model_export
-
This module contains an "Export extensions" for LOD dictionary SQL model. Add export() function to db object for returning its text string presentation.
loglan_db.model_html
-
HTML Export extensions of LOD database models
loglan_db.model_init
-
Initial common functions for LOD Model Classes
Functions
def app_lod(config_lod=loglan_db.CLIConfig, database=<SQLAlchemy engine=postgresql://postgres:***@localhost:5432/loglan_api>)
-
Create LOD app with specified Config :param config_lod: Database Config :param database: SQLAlchemy() Database :return: flask.app.Flask
def create_app(config, database)
-
Create app
def run_with_context(function)
-
Context Decorator
Classes
class CLIConfig
-
Configuration object for remote database
Class variables
var SQLALCHEMY_DATABASE_URI
var SQLALCHEMY_TRACK_MODIFICATIONS