Extension Configuration
Database management extension configuration.
You can customize any BDC-DB config variable exposing the environment variables:
export SQLALCHEMY_DATABASE_URI="postgresql://user:pass@locahost/bdc"
export JSONSCHEMAS_HOST=myhost.org
- bdc_db.config.JSONSCHEMAS_HOST = 'brazildatacube.org'
Define the hostname for any JSONSchemas supported by Brazil Data Cube.
- bdc_db.config.SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost:5432/bdc'
The database URI that should be used for the database connection.
Defaults to
'postgresql://postgres:postgres@localhost:5432/bdc'.
- bdc_db.config.SQLALCHEMY_ECHO = False
Enables or disable debug output of statements to
stderr.Defaults to
False.
- bdc_db.config.SQLALCHEMY_ENGINE_OPTIONS = {'pool_pre_ping': True}
Set default engine options for SQLAlchemy instance.
See more in EngineOptions.
- bdc_db.config.SQLALCHEMY_TRACK_MODIFICATIONS = False
Enable (True) or disable (False) signals before and after changes are committed to the database.
Defaults to
False.