On Nov 6, 2011, at 9:24 AM, Antonio Recio wrote:

> I would like to use ClojureScript to interact with databases. 
> Which is the database engine that you recommend me to use with ClojureScript? 
> Is CouchDB most recommendable than PostgreSQL? 
> Do you know some project using ClojureScript to interact with databases?

I doubt that anyone will be able to write a postgres driver for ClojureScript 
any time soon.  A CouchDB library for ClojureScript would be interesting though.

Remember that ClojureScript runs entirely in the browser.  So, in many (most?) 
cases, you probably don't want authentication credentials to your database 
being in all of your client's browsers.  That said, CouchDB does support 
authentication and authorization solely through HTTP, so a really quality 
CouchDB library for ClojureScript could provide for pleasant, secured CouchDB 
access.

Currently, everyone (AFAIK) delegates database access to the backend that is 
serving up the ClojureScript front-end.  Once there, there's plenty of support 
for postgres (via java.jdbc[1], korma[2], et al.) and CouchDB (I prefer 
clutch[3], but I'm biased).

In case you're interested in writing CouchDB views using ClojureScript, there's 
this:

https://github.com/cemerick/clutch-clojurescript

Cheers,

- Chas

[1] https://github.com/clojure/java.jdbc
[2] http://sqlkorma.com/
[3] http://github.com/ashafa/clutch

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to