The 0.3.x
versions of org.clojure/java.jdbc
have made some changes to the functionality contained in the clojure.java.jdbc
namespace, including the removal of create-table
(amongst others).
So, either you use an earlier version of the library or you access the deprecated
namespace that ships with the current one. I.e., replace
(ns tonglindb.models.db
(:require [clojure.java.jdbc :as sql]))
with
(ns tonglindb.models.db
(:require [clojure.java.jdbc.deprecated :as sql]))
Doc: http://clojure.github.io/java.jdbc/#clojure.java.jdbc.deprecated
This namespace contains the old API (0.2.3) which was deprecated in the 0.3.0
release and is provided for backward compatibility. This API will be removed
completely before a 1.0.0 release so will need to migrate code to the new API
before that release.
Edit: As Daniel Neal mentioned in the comments, the DDL functions moved to seancorfield/jsql. It's probably better to rely on that library instead of a deprecated namespace.