Start of DBMS support
[hcoop/domtool2.git] / src / plugins / domtool-postgres
diff --git a/src/plugins/domtool-postgres b/src/plugins/domtool-postgres
new file mode 100755 (executable)
index 0000000..276637f
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+case $1 in
+       adduser)
+               echo "I would create PostgreSQL user $2."
+       ;;
+       createdb)
+               echo "I would create PostgreSQL table $2_$3 for user $2."
+       ;;
+       *)
+               echo "Usage: domtool-postgres [adduser <user> | createdb <user> <table>]"
+       ;;
+esac