2013/3/25 Ryan <arekand...@gmail.com>

> Thanks for your input Herwig.
>
> When talking to a database, there might already be record and
>> list-of-records interface, for step 2.
>
>
> I didn't fully understand what you meant with that. Can you please
> explain?
>

For example clojure.java.jdbc/insert! [1] can take a number of record maps,
to be inserted into a table.
Datomic's transact [2] can also take a list of maps, that are interpreted
as additions of facts to an entity.
I imagine similar interfaces exist for various no-sql systems.

The hint was, that given those interfaces, your step 2 might just be
another functional transformation, continuing into a single call to an
update! function of your db system.

[1] http://clojure.github.com/java.jdbc/#clojure.java.jdbc/insert!
[2] http://docs.datomic.com/clojure/index.html#datomic.api/transact

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to