atareao gist felülvizsgálása 1 month ago. Revízióhoz ugrás
1 file changed, 27 insertions
lazysql.toml(fájl létrehozva)
| @@ -0,0 +1,27 @@ | |||
| 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 | + | ] | |
Újabb
Régebbi