使用Clojure的数据库 [英] Use a database with Clojure

查看:138
本文介绍了使用Clojure的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Clojure使用数据库的方法是什么?

What methods to use a database from Clojure are there?

我知道从Clojure你可以做任何你可以用Java,但这意味着,我可能最终使用过于复杂(如Hibernate)与Clojure简单冲突。任何建议或意见?

I know from Clojure you can do anything you can with Java, but that means that I may end up using something overly complicated (like Hibernate) which clashes with Clojure simplicity. Any recommendations or comments?

推荐答案

clojure-contrib 有一个sql库,它是一个围绕JDBC(java.sql.DriverManager)的薄包装。它附带的测试文件有一些使用的例子。

clojure-contrib has an sql library which is a thin wrapper around JDBC (java.sql.DriverManager). The test file that comes with it has some examples of its usage.

这篇关于使用Clojure的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆