generated from phundrak/rust-poem-openapi-template
16 lines
803 B
EmacsLisp
16 lines
803 B
EmacsLisp
;;; Directory Local Variables -*- no-byte-compile: t -*-
|
|
;;; For more information see (info "(emacs) Directory Variables")
|
|
|
|
((sql-mode
|
|
.
|
|
((eval . (progn
|
|
(setq-local lsp-sqls-connections
|
|
`(((driver . "postgresql")
|
|
(dataSourceName .
|
|
,(format "host=%s port=%s user=%s password=%s dbname=%s sslmode=disable"
|
|
(getenv "DB_HOST")
|
|
(getenv "DB_PORT")
|
|
(getenv "DB_USER")
|
|
(getenv "DB_PASSWORD")
|
|
(getenv "DB_NAME")))))))))))
|