(def db {:classname "org.apache.derby.jdbc.EmbeddedDriver"
         :subprotocol "derby"
         :subname "C:/clojure/progs/netflix/netflix.db"
         :create true})

would I add this to set username and password?
;;       :user "ninja"
;;       :password "kalle"})


(defn create-reviews-table []
  (sql/create-table :reviews
                    [:customerid :int]
                    [:movieid :int]
                    [:reviewdate "DATE"]
                    [:grade :int]))

how would I set foreign and primary key?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to