From: Andreas Gerler Date: Fri, 8 Apr 2016 14:13:54 +0000 (+0200) Subject: snippets: adding org sql vertica X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=3198f9bf4cfb24c028773895e7e2b35e61ae2256;p=emacsconfig.git snippets: adding org sql vertica - adding template to connect to Vertica in org-mode. --- diff --git a/snippets/org-mode/sqlvertica b/snippets/org-mode/sqlvertica new file mode 100644 index 00000000..da873d74 --- /dev/null +++ b/snippets/org-mode/sqlvertica @@ -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