Browse Source

clojure updates

myfreeweb 12 years ago
parent
commit
775178a7af
2 changed files with 9 additions and 9 deletions
  1. 2 2
      compojure/hello/project.clj
  2. 7 7
      compojure/hello/src/hello/handler.clj

+ 2 - 2
compojure/hello/project.clj

@@ -1,9 +1,9 @@
 (defproject hello "compojure"
   :description "JSON/Database tests"
   :url "http://example.com/FIXME"
-  :dependencies [[org.clojure/clojure "1.4.0"]
+  :dependencies [[org.clojure/clojure "1.5.1"]
                  [compojure "1.1.5"]
-                 [ring/ring-json "0.1.2"]
+                 [ring/ring-json "0.2.0"]
                  [korma "0.3.0-RC2"]
                  [mysql/mysql-connector-java "5.1.6"]
                  ]

+ 7 - 7
compojure/hello/src/hello/handler.clj

@@ -9,13 +9,13 @@
 
 ; Database connection
 (defdb db (mysql {:db "hello_world"
-                       :user "benchmarkdbuser"
-                       :password "benchmarkdbpass"
-                       ;;OPTIONAL KEYS
-                       :host "localhost"
-                       :port "3306"
-                       :delimiters "" ;; remove delimiters
-                       :maximum-pool-size 256
+                  :user "benchmarkdbuser"
+                  :password "benchmarkdbpass"
+                  ;;OPTIONAL KEYS
+                  :host "localhost"
+                  :port "3306"
+                  :delimiters "" ;; remove delimiters
+                  :maximum-pool-size 256
                   }))
 
 ; Set up entity World and the database representation