datodev / dato

Experiment in distilling apps to their essence
Eclipse Public License 1.0
168 stars 8 forks source link

Call DataScript DB `conn` for Datomic parity? #8

Open sgrove opened 9 years ago

sgrove commented 9 years ago

There isn't a separation between a connection and a DB in DataScript as there is in Datomic (will there be, with the webpeer?), but it might be nice to present the same interface on both platforms. Right now the DS DB inside (:db dato) is the atom, and can be deref'd for reading, or transacted into. I like the idea of having the atom in (:conn dato) and a separate (dato/db (:conn dato)) function for parity.