]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
new yasnippets to use orgmode sql with MySQL and Oracle via Perl/DBD::Oracle/dbish.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Tue, 12 May 2015 19:06:07 +0000 (21:06 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Tue, 12 May 2015 19:06:07 +0000 (21:06 +0200)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
snippets/org-mode/sqlmysql [new file with mode: 0644]
snippets/org-mode/sqlora [new file with mode: 0644]

diff --git a/snippets/org-mode/sqlmysql b/snippets/org-mode/sqlmysql
new file mode 100644 (file)
index 0000000..0a75beb
--- /dev/null
@@ -0,0 +1,14 @@
+# -*- mode: snippets -*-
+# name: sqlmysql
+# expand-env: ((yas-indent-line 'fixed))
+# key: sqlmysql
+# --
+:PROPERTIES:
+:engine: mysql
+:dbhost: ${1:localhost}
+:dbuser: ${2:user}
+:dbpassword: ${3:password}
+:cmdline: --protocol=tcp
+:exports: both
+:END:
+$0
\ No newline at end of file
diff --git a/snippets/org-mode/sqlora b/snippets/org-mode/sqlora
new file mode 100644 (file)
index 0000000..991d188
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- mode: snippets -*-
+# name: sqlora
+# expand-env: ((yas-indent-line 'fixed))
+# key: sqlora
+# --
+:PROPERTIES:
+:engine: dbi
+:cmdline: dbi:Oracle://${1:localhost}:${2:1521}/${3:SID} ${4:user} ${5:password}
+:exports: both
+:END:
+$0
\ No newline at end of file