A db tool for seeding and updating the ugs water chemistry database.
- Install oracle instant client >= 19.3.0.0.0
- Download the "Basic Light Package" from this page.
- Follow install directions at the bottom of the download page.
- No need to mess with co-locating optional oracle config files such as
tnsnames.ora
.
- No need to mess with co-locating optional oracle config files such as
- Follow ODBC installation instructions for windows.
- Update
ugssecrets.py
based on the sample.- To find the name of your instant client driver:
import pyodbc;pyodbc.drivers()
.
- To find the name of your instant client driver:
- execute
scripts\createDB.sql
or create a sql server database calledUGSWaterChemistry
- execute
python -m ugsdbseeder create-tables <configuration>
to create db tables. - see usage (
python -m ugsdbseeder -h
)
from the **/src**
directory
execute python -m ugsdbseeder -h
for usage.
from the parent project directory
tox