611d44fcce
This uses a common table expression and multiple SQL calls rather than a temporary table, since transactions with huge numbers of distinct lookup-refs are likely to be very rare. We mark lookup-refs with `lookup-ref`, which is a little awkward because binding `(let [[a v] lookup-ref] ...)` doesn't directly work, but avoids some ambiguity present in Datomic and DataScript around interpreting lookup-refs as multiple value lists. (Which bit the tests in an earlier version of this patch!) |
||
---|---|---|
.. | ||
places | ||
test | ||
db_test.cljc | ||
jdbc_sqlite_test.clj | ||
promise_sqlite_test.cljs | ||
query_test.cljc | ||
schema_changes_test.cljc | ||
schema_test.cljc | ||
sqlite_user_version_test.cljc | ||
test.cljs | ||
test_macros_test.clj | ||
test_macros_test.cljs | ||
tofinoish_test.cljc |