Skip to content

Repository files navigation

vertailu

This project compares our Datahike API with the Datomic Clojure API.

Comparing Function Signatures

DatahikeDatomicStatus
(connect arg-map)(connect client arg-map)⚠️ (rename does not make sense)
(database-exists? arg-map)-✔️ (remains unchanged)
(create-database config)(create-database client arg-map)⚠️ (rename does not make sense)
(delete-database config)(delete-database client arg-map)⚠️ (rename does not make sense)
(transact conn tx-data)(transact conn arg-map)✔️ (adapted)
(transact! conn tx-data tx-meta)-✔️ (removed)
(load-entities conn tx-data)-✔️
(release conn)-✔️
(pull db selector eid)(pull db selector eid)✔️
(pull db selector eid)(pull db arg-map)✔️ (arity added)
(pull-many db selector eids)-✔️
(q query & inputs)(q query & args)⚠️ (query-type? map? list? string?)
(q query-map)(q arg-map)⚠️ (:timeout?)
(datoms db index & components)(datoms db arg-map)✔️ (adapted)
(datoms db arg-map)tests need to pass
(seek-datoms db index & components)-
(tempid part x)-
(entity db eid)-
(entity-db entity)-
(is-filtered x)-
(filter db pred)-
(with db tx-data tx-meta)(with db arg-map)⚠️ (rename arg?)
(db-with db tx-data)(with-db conn)⚠️ (rename function and args?)
(db conn)(db conn)✔️ (ILookup Interface support?)
(history db)(history db)✔️
(as-of db timepoint)(as-of db time-point)✔️
(since db timepoint)(since db t)✔️
-(administer-system client arg-map)⚠️
-(client arg-map)⚠️
-(db-stats db)⚠️
-(index-pull db arg-map)⚠️
-(index-range db arg-map)⚠️
-(list-databases client arg-map)⚠️
-(qseq arg-map) (qseq query & args)⚠️
-(sync conn t)⚠️
-(tx-range conn arg-map)⚠️
  • ✔️ means the signature is already comparable
  • ⚠️ means the signature should probably be matched
  • ❌ means the function is only available in Datahike and needs no adjustment

License

Copyright © 2019 lambdaforge UG

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.

About

Datahike Datomic comparison

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages