   (stop [this] this))
 
 (defn new-datomic-schema [res]
-  (->DatomicSchema res))
+  (component/using
+   (->DatomicSchema res)
+   [:connection]))

    (d/shutdown false)
    this))

(def new-datomic-database-schema
  {:uri s/Str
   :ephemeral? s/Bool})

  (stop [this] this))

(defn new-datomic-connection []
  (component/using
   (->DatomicConnection)
   [:database]))

(defrecord DatomicSchema [res]
  component/Lifecycle
