]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippets: adding org sql vertica
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 8 Apr 2016 14:13:54 +0000 (16:13 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 8 Apr 2016 14:13:54 +0000 (16:13 +0200)
- adding template to connect to Vertica in org-mode.

snippets/org-mode/sqlvertica [new file with mode: 0644]

diff --git a/snippets/org-mode/sqlvertica b/snippets/org-mode/sqlvertica
new file mode 100644 (file)
index 0000000..da873d7
--- /dev/null
@@ -0,0 +1,19 @@
+# -*- mode: snippet -*-
+# name: sqlvertica
+# expand-env: ((yas-indent-line 'fixed))
+# key: sqlvertica
+# --
+:PROPERTIES:
+:engine: vertica
+:dbhost: ${1:localhost}
+:dbuser: ${2:user}
+:dbpassword: (concat ${3:bba-db})
+:database: ${4:$2}
+:exports: both
+:END:
+
+(setq $3 "$5")$0
+
+#+BEGIN_SRC sql
+
+#+END_SRC