lazysql.toml
· 733 B · TOML
Исходник
# .lazysql.toml — Configuración local del proyecto
[application]
DefaultPageSize = 500
DisableSidebar = false
# Conexión a SQLite local (desarrollo)
[[database]]
Name = 'Desarrollo local'
Provider = 'sqlite3'
URL = 'file:./dev.db?loc=auto'
# Conexión a PostgreSQL (staging)
[[database]]
Name = 'Staging'
Provider = 'postgres'
URL = 'postgres://${env:STG_USER}:${env:STG_PASS}@staging.example.com:5432/miapp'
# Conexión a PostgreSQL (producción — solo lectura)
[[database]]
Name = 'Producción'
Provider = 'postgres'
URL = 'postgres://${env:PROD_USER}:${env:PROD_PASS}@prod.example.com:5432/miapp'
ReadOnly = true
Commands = [
{ Command = 'ssh -tt bastion.prod.com -L ${port}:prod-db:5432', WaitForPort = '${port}' },
]
| 1 | # .lazysql.toml — Configuración local del proyecto |
| 2 | |
| 3 | [application] |
| 4 | DefaultPageSize = 500 |
| 5 | DisableSidebar = false |
| 6 | |
| 7 | # Conexión a SQLite local (desarrollo) |
| 8 | [[database]] |
| 9 | Name = 'Desarrollo local' |
| 10 | Provider = 'sqlite3' |
| 11 | URL = 'file:./dev.db?loc=auto' |
| 12 | |
| 13 | # Conexión a PostgreSQL (staging) |
| 14 | [[database]] |
| 15 | Name = 'Staging' |
| 16 | Provider = 'postgres' |
| 17 | URL = 'postgres://${env:STG_USER}:${env:STG_PASS}@staging.example.com:5432/miapp' |
| 18 | |
| 19 | # Conexión a PostgreSQL (producción — solo lectura) |
| 20 | [[database]] |
| 21 | Name = 'Producción' |
| 22 | Provider = 'postgres' |
| 23 | URL = 'postgres://${env:PROD_USER}:${env:PROD_PASS}@prod.example.com:5432/miapp' |
| 24 | ReadOnly = true |
| 25 | Commands = [ |
| 26 | { Command = 'ssh -tt bastion.prod.com -L ${port}:prod-db:5432', WaitForPort = '${port}' }, |
| 27 | ] |