]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
testing steampipe
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 12 Jul 2024 16:20:12 +0000 (18:20 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 12 Jul 2024 16:20:12 +0000 (18:20 +0200)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba.org

diff --git a/bba.org b/bba.org
index 7ab60a302b54ff4fa2c61df43ba15cf8ea6e48e5..3b5445031a52c31df6c4bd175600e4271ea9699e 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -172,6 +172,21 @@ from bash.
             (push "/opt/local/share/info" Info-directory-list)))
 #+END_SRC
 
+
+* testing steampipe
+[2023-04-05 Wed 13:18]
+
+#+begin_src emacs-lisp :tangle never
+  (defun bba-steampipe()
+    "set sql connection for steampipe"
+    (interactive)
+    (setq sql-postgres-login-params nil)
+    (let (foo (shell-command-to-string "steampipe service start")))
+    (add-to-list 'sql-connection-alist
+                 `(steampipe (sql-product 'postgres)
+                             (sql-database ,(shell-command-to-string "steampipe service status --show-password | grep \"Connection string\" | awk '{print $3}' | tr -d '\n'")))))
+#+end_src
+
 * bba open safari url in eww
 [2023-05-09 Tue 16:25]