Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -0,0 +1,13 @@
|
|||
(require '[clojure.java.jdbc :as sql])
|
||||
; Using h2database for this simple example.
|
||||
(def db {:classname "org.h2.Driver"
|
||||
:subprotocol "h2:file"
|
||||
:subname "db/my-dbname"})
|
||||
|
||||
(sql/db-do-commands db
|
||||
(sql/create-table-ddl :address
|
||||
[:id "bigint primary key auto_increment"]
|
||||
[:street "varchar"]
|
||||
[:city "varchar"]
|
||||
[:state "varchar"]
|
||||
[:zip "varchar"]))
|
||||
Loading…
Add table
Add a link
Reference in a new issue