Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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:

RegionPrefixDescription
auDB_AU_*Australia
ukDB_UK_*United Kingdom
usDB_US_*United States
demoDB_DEMO_*Demo/test environment

Setup

  1. Copy the example file:

    cp .env.example .env
    
  2. Edit .env with your database credentials.

  3. Test connectivity:

    efision -r au wheels count
    

Notes

  • The .env file 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.