Ostatnio aktywny 1 month ago

Configuración global de lazysql — conexiones guardadas y opciones de aplicación

atareao's Avatar atareao zrewidował ten Gist 1 month ago. Przejdź do rewizji

1 file changed, 24 insertions

config.toml(stworzono plik)

@@ -0,0 +1,24 @@
1 + [[database]]
2 + Name = 'Producción'
3 + Provider = 'postgres'
4 + DBName = 'foo'
5 + URL = 'postgres://${env:DB_USER}:${env:DB_PASSWORD}@localhost:${port}/foo'
6 + ReadOnly = true
7 + Commands = [
8 + { Command = 'ssh -tt remote-bastion -L ${port}:localhost:5432', WaitForPort = '${port}' },
9 + { Command = 'whoami', SaveOutputTo = 'user' },
10 + ]
11 +
12 + [[database]]
13 + Name = 'Desarrollo'
14 + Provider = 'postgres'
15 + DBName = 'foo'
16 + URL = 'postgres://postgres:pass@localhost:5432/foo'
17 +
18 + [application]
19 + DefaultPageSize = 300
20 + DisableSidebar = false
21 + SidebarOverlay = false
22 + JSONViewerWordWrap = false
23 + EnterOpensJSONViewer = false
24 + ConfirmOnQuit = true
Nowsze Starsze