- adding org snippet for postgresql
- org snippet for mysql with adjustable password variable.
:engine: mysql
:dbhost: ${1:localhost}
:dbuser: ${2:user}
-:dbpassword: ${3:(concat bba-db)}
+:dbpassword: (concat ${3:bba-db})
:database: ${4:mysql}
:cmdline: --protocol=tcp
:exports: both
:END:
-(setq bba-db "$5")$0
+(setq $3 "$5")$0
#+BEGIN_SRC sql
--- /dev/null
+# -*- mode: snippet -*-
+# name: sqlpg
+# expand-env: ((yas-indent-line 'fixed))
+# key: sqlpg
+# --
+:PROPERTIES:
+:engine: postgresql
+:dbhost: ${1:localhost}
+:dbuser: ${2:user}
+:dbpassword: (concat ${3:bba-db})
+:database: ${4:postgres}
+:exports: both
+:END:
+
+(setq $3 "$5")$0
+
+#+BEGIN_SRC sql
+
+#+END_SRC