       [cljs.core.async.macros :refer [go]]))
   (:require
      [datomish.db :as db]
-     [datomish.exec :as exec]
      [datomish.sqlite :as s]
      [datomish.sqlite-schema :as ss]
      [datomish.query :as dq]
+     [datomish.transact :as transact]
      #?@(:clj
            [[datomish.jdbc-sqlite]
             [datomish.pair-chan :refer [go-pair <?]]

  "Given an open database, returns a lazy sequence of results.
   When fully consumed, underlying resources will be released."
  [db find]
  (pair-channel->lazy-seq (exec/<?run db find))))

(defn xxopen []
    (datomish.pair-chan/go-pair

        (def db d))))

;; With an open DB…
#_(run-to-pair-seq
    db
    '[:find ?page :in $ :where [?page :page/starred true ?t]])

