Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (sql/with-connection @db/*db*
- (sql/transaction
- (with-open [stmt (.prepareStatement (sql/connection) "SELECT * FROM table_name LIMIT 10")]
- (.setFetchSize stmt 50)
- (printf "AutoCommit:%s\n" (.getAutoCommit (sql/connection)))
- (printf "FetchSize: %s" (.getFetchSize stmt))
- (let [rs (resultset-seq (.executeQuery stmt))]
- (printf "First rec: %s\n" (first rs))))))
Add Comment
Please, Sign In to add comment