]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippets for sql-interactive
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 30 Nov 2016 16:06:53 +0000 (17:06 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 30 Nov 2016 16:06:53 +0000 (17:06 +0100)
- some snippets for interactive Vertica SQL.

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
snippets/sql-interactive-mode/grants_resourcepool [new file with mode: 0644]
snippets/sql-interactive-mode/vertica_users [new file with mode: 0644]

diff --git a/snippets/sql-interactive-mode/grants_resourcepool b/snippets/sql-interactive-mode/grants_resourcepool
new file mode 100644 (file)
index 0000000..3205b92
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: grants_resourcepool
+# key: grares_
+# --
+SELECT grantee, object_name FROM grants WHERE object_type = 'RESOURCEPOOL' ORDER BY grantee LIMIT 50;
\ No newline at end of file
diff --git a/snippets/sql-interactive-mode/vertica_users b/snippets/sql-interactive-mode/vertica_users
new file mode 100644 (file)
index 0000000..6fdaff0
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: vertica_users
+# key: vertu_
+# --
+SELECT user_name,resource_pool,default_roles FROM users ORDER BY 1;
\ No newline at end of file