                            (s/validate new-datomic-database-schema))]
     (if ephemeral?
       (->EphemeralDatabase uri)
-      (throw (ex-info "Persistent databases not yet implemented" {})))))
+      (->DurableDatabase uri))))
 
 (defrecord DatomicConnection []
   component/Lifecycle

  (stop [this] this))

(defn new-datomic-schema [res]
  (->DatomicSchema res))

    (d/shutdown false)
    this))

(defrecord DurableDatabase [uri]
  component/Lifecycle
  (start [this] this)
  (stop [this]
    (d/shutdown false)
    this))

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