Configuration¶
The default values of configuration options are guessed based on installed packages.
-
SQLALCHEMY_DATABASE_URI
¶ The database URI that should be used for the connection. Defaults to
'sqlite:///<instance_path>/<app.name>.db'
.
-
SQLALCHEMY_ECHO
¶ Enables debug output containing database queries. Defaults to
True
if application is in debug mode (app.debug == True
).
-
DB_VERSIONING
¶ Enables versioning support using SQLAlchemy-Continuum. Defaults to
True
ifsqlalchemy_continuum
package is installed.
-
DB_VERSIONING_USER_MODEL
¶ User class used by versioning manager. Defaults to
'User'
ifinvenio_accounts
package is installed.
-
ALEMBIC
¶ Dictionary containing general configuration for Flask-Alembic. It contains defaults for following keys:
'script_location'
points to location of the migrations directory. It is required key and defaults to location ofinvenio_db.alembic
package resource.'version_locations'
lists location of all independent named branches specified by Invenio packages ininvenio_db.alembic
entry point group.
Please check following packages for further configuration options: