Possible data sources

I find it hard to figure out which data sources exist for Datomic. We all know the one returned by datomic.api/db, and collections of tuples have cropped up in a few examples. Collections of maps, such as this example

(q '[:find ?m

:where [?m :foo :bar]]

[{:foo :bar :n 42}

{:foo :baz :n 1}])

does not seem to work, even though they could define an interesting [entity attribute value] relation ([the-map-itself a-key the-keys-value]).

> David, thanks, that was an excellent set of examples.
>
> Rich, thanks for the info. I guess the solution is to take the data and convert it to a collection of tuples before feeding it into datomic.api/q.
>

You don't need to convert the data, just provide an indexed view, like this: