Configuration
Efision reads database credentials from a .env file in the project root.
Environment Variables
Each region requires 5 variables following the pattern DB_<REGION>_*:
DB_AU_HOST=your_host
DB_AU_PORT=1433
DB_AU_NAME=your_database
DB_AU_USER=your_user
DB_AU_PASSWORD=your_password
Repeat for each region you need access to:
| Region | Prefix | Description |
|---|---|---|
au | DB_AU_* | Australia |
uk | DB_UK_* | United Kingdom |
us | DB_US_* | United States |
demo | DB_DEMO_* | Demo/test environment |
Setup
-
Copy the example file:
cp .env.example .env -
Edit
.envwith your database credentials. -
Test connectivity:
efision -r au wheels count
Notes
- The
.envfile is git-ignored — never commit database credentials. - You only need to configure regions you will access. Unused regions can be left blank.
- The default port for SQL Server is
1433. - Efision uses Tiberius (pure Rust TDS driver) — no ODBC driver needed.