Commits

Shantanu Kumar committed 7a98bf0

add catalog, schema and show-sql keys in dbspec

Comments (0)

Files changed (1)

src/main/clj/org/bituf/clj_dbspec.clj

     :connection  (java.sql.Connection, default: nil)
                   1. If the connection is not taken from a datasource you SHOULD
                      include a cached :dbmetadata value while re-binding.
-    :dbmeta      (map, default: empty map)
+    :dbmetadata  (map, default: empty map)
                   1. This is usually result of dbmeta function.
+    :catalog     (Clojure form - String, Keyword etc.; default nil)
+                  1. Catalog name - SHOULD be converted using db-iden
+    :schema      (Clojure form - String, Keyword etc.; default nil)
+                  1. Schema name - SHOULD be converted using db-iden
+    :show-sql    (Booleanl default true)
+                  1. If true, SQL statements should be printed.
     :clj-to-db   (function, default: to string, replace '-' => '_')
                   1. Dictates how are identifiers converted from Clojure to
                      the Database.
                  :datasource nil
                  :connection nil
                  :dbmetadata (array-map)
+                 :catalog    nil
+                 :schema     nil
+                 :show-sql   true
                  :clj-to-db  (fn [iden]
                                (if (string? iden) iden
                                  (apply str (replace {\- \_}