Ich bin ein Neuling zu Datomic und ich versuche immer noch herauszufinden, wie das System gebaut wurde. Insbesondere verstehe ich nicht, welche Rolle: db.part/db spielt, wie es scheint, jedes Mal benötigt wird, wenn ein Schema installiert wird. Könnte jemand etwas Licht auf das werfen, was das alles bedeutet?Was bedeuten alle Felder für db.part/db?
(require '[datomic.api :as d]) (def uri "datomic:mem://sample") (d/create-database uri) (def conn (d/connect uri)) (pprint (seq (d/entity dbval :db.part/db))) ;; => ;; ([:db/doc "Name of the system partition. The system partition includes the core of datomic, as well as user schemas: type definitions, attribute definitions, partition definitions, and data function definitions."] ;; [:db.install/function #{:db.fn/cas :db.fn/retractEntity}] ;; [:db.install/attribute ;; #{:db/noHistory :db.install/partition :db/cardinality ;; :db.install/attribute :db/index :db/unique :db/fulltext ;; :db/txInstant :db/lang :db/doc :db.install/valueType :db/code ;; :db/isComponent :db/fn :db.install/function :db/valueType :db/ident ;; :fressian/tag}] ;; [:db.install/valueType ;; #{:db.type/uuid :db.type/bigint :db.type/uri :db.type/ref ;; :db.type/keyword :db.type/bytes :db.type/string :db.type/instant ;; :db.type/fn :db.type/long :db.type/bigdec :db.type/boolean ;; :db.type/double :db.type/float}] ;; [:db.install/partition #{:db.part/db}] ;; [:db/ident :db.part/db])