Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added factory constructor for Table

  • Loading branch information...
commit ea963d3e83ab470ecc89828fc82ddac45f2613e3 1 parent 44171fc
@LauJensen authored
View
1  .gitignore
@@ -5,4 +5,3 @@ pom.xml
lib
classes
build
-clojureql
View
7 src/clojureql/core.clj
@@ -77,8 +77,13 @@
(doall rs))))
)
+(defn table [connection-info table-name table-colums]
+ " Returns a reference to a table, which will be accessed via the connection-info
+ (contrib.sql spec) and query the table-name (keyword) for the colums defined in
+ table-colums.
-
+ (table *conn-info* :table1 [:name :id]) "
+ (Table. connection-info table-name table-colums))
View
1  src/clojureql/internal.clj
@@ -1,4 +1,5 @@
(ns clojureql.internal
+ (:require clojure.contrib.sql.internal)
(:use [clojure.string :only [join] :rename {join join-str}]))
(def *db* {:connection nil :level 0})
Please sign in to comment.
Something went wrong with that request. Please try again.