Source code for flask_diamond.facets.database

# -*- coding: utf-8 -*-
# Flask-Diamond (c) Ian Dennis Miller

from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()

[docs]def init_database(self): """ Initialize database :returns: None Flask-Diamond assumes you are modelling your solution using an Entity- Relationship framework, and that the application will use a relational database (e.g. MySQL, Postgres, or SQlite3) for model persistence. Thus, `SQLAlchemy <>`_ and `Flask- SQLalchemy <>`_ are used for database operations. Typically, this just works as long as ``SQLALCHEMY_DATABASE_URI`` is set correctly in the application configuration. """ = db.init_app(

Topic Navigation