Trees | Indices | Help |
---|
|
1 import os 2 import flask 3 import click 4 from coprs import app8 with app.app_context(): 9 uri = app.config["SQLALCHEMY_DATABASE_URI"] 10 11 if not uri.startswith("sqlite"): 12 return None 13 14 # strip sqlite:/// 15 datadir_name = os.path.dirname(uri[10:]) 16 if not os.path.exists(datadir_name): 17 os.makedirs(datadir_name)1821 """ 22 Create the sqlite DB file (not the tables). 23 Used for alembic, "create-db" does this automatically. 24 """ 25 return create_sqlite_file()26
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |