Configuration
Environment variables
Variable |
Description |
Default |
|---|---|---|
|
Database type: |
Required |
|
Database host |
|
|
Database user |
|
|
Database password |
|
|
Database name or SQLite file path |
Required |
|
ODBC driver name (SQL Server only) |
|
|
Database port |
Driver default |
|
Oracle SID |
|
|
Oracle port |
|
Constructor parameters
All environment variables can be overridden by passing parameters directly:
db = SQLPyHelper(
db_type="postgres",
host="localhost",
user="myuser",
password="mypassword",
database="mydb",
port="5432",
)