Update README.md
This commit is contained in:
parent
b10170e9b0
commit
bb56611150
|
@ -14,10 +14,10 @@ requires the database name to connect to and the application environment (PROD o
|
|||
from the production environment, which is why this is necessary. An example is shown below:
|
||||
|
||||
```python
|
||||
from cerc_persistence import CityRepo
|
||||
from cerc_persistence.db_setup import DBSetup
|
||||
|
||||
# instantiate city repo for hub production database
|
||||
city_repo = CityRepo(db_name='hub', app_env='PROD')
|
||||
db = DBSetup(db_name='hub', app_env='PROD', dotenv_path='/path/to/.env', admin_password='application_password', application_uuid='UUID')
|
||||
```
|
||||
|
||||
All database operations are conducted with the production database (*PROD*) named *hub* in the example above.
|
||||
|
|
Loading…
Reference in New Issue
Block a user