Questions tagged [datomic]

Datomic is a database of flexible, time-based facts, supporting queries and joins, with elastic scalability, and ACID transactions.

From the datomic website:

Datomic is a database of flexible, time-based facts, supporting queries and joins, with elastic scalability, and ACID transactions.

Resources:

Videos:


Related tags :

430 questions
8
votes
1 answer

Basic logging in Clojure web service not appearing on console

I am following this tutorial to set up application logging in my Clojure web app, which I am going to be using for some Datomic experimentation. The tutorial suggests that all I have to do is add Clojure's clojure.tools.logging library to my…
Owen S.
  • 7,665
  • 1
  • 28
  • 44
8
votes
2 answers

lein install datomic peer library on mac

I cannot get leiningen to download the datomic-pro peer library. I have the following setup: ~/.lein/credentials.clj.gpg {#"my\.datomic\.com" {:username "..." :password "..."}} And the project (defproject datomic-example…
shaft
  • 2,147
  • 2
  • 22
  • 38
8
votes
3 answers

Access control in Datomic

When writing an application based on Datomic and Clojure, it seems the peers have unrestricted access to the data. How do I build a multi-user system where user A cannot access data that is private to user B? I know I can write the queries in…
Jason
  • 11,709
  • 9
  • 66
  • 82
8
votes
3 answers

"No reader function" error using Datomic in Light Table

When I eval this code in lighttable: (ns app.core (:require [datomic.api :refer [q] :as d] :reload-all)) (defn add-person [conn id] (d/transact conn [{:db/id #db/id[:db.part/user -1000001] :person/id id}])) I…
ajsie
  • 77,632
  • 106
  • 276
  • 381
8
votes
2 answers

qualified relationships in datomic

In a relational DB, I could have a table Person and a table Hobby. Every person can have zero, one or more hobbies, and I also want to record, say, the priority of those hobbies for every person. I could create a relationship table with the 2…
SuperHorst
  • 157
  • 7
7
votes
1 answer

Clojure RuntimeException - No reader function for tag db/id

What is happening when I get this error in Clojure? java.lang.RuntimeException: No reader function for tag db/id
Zefira
  • 4,329
  • 3
  • 25
  • 31
7
votes
1 answer

In which position does Datomic lies in the CAP Triangle?

Recently I heard that Datomic as a modern database, can be excellent at data modeling and scalability. But I know little of it. Does the Datomic database follows the CAP Theorem? If so, in which position does it lies in the CAP Triangle?
cmal
  • 2,062
  • 1
  • 18
  • 35
7
votes
1 answer

How to update/overwrite a ref attribute with cardinality many in datomic?

Let’s say I have a schema that includes an attribute :x/value, where :x/value is a component, is a ref, and has cardinality many. The schema also has an id for x :x/id. Now let’s say I say I transact the following: (d/transact conn [{:x/id "1234"…
fraxture
  • 5,113
  • 4
  • 43
  • 83
7
votes
1 answer

Datomic error message

I'm getting this when I'm calling transact: datomic.impl.Exceptions$IllegalArgumentExceptionInfo: :db.error/not-a-data-function Not a data function: 71 data: {:db/error :db.error/not-a-data-function} …
Kevin
  • 24,871
  • 19
  • 102
  • 158
7
votes
0 answers

How to setup Datomic with Heroku Postgresql?

I have trouble setting up Datomic with Heroku Postgres. First of all I have this successfully installed [com.datomic/datomic-pro "0.9.5206" :exclusions [joda-time]] My sql-transactor.properties file looks like…
ma2s
  • 1,312
  • 1
  • 11
  • 24
7
votes
0 answers

Is datalog more efficient than SQL for column oriented databases?

Both Cascalog and Datomic have chosen to use Datalog (over SQL) as their query engine. Dave Thomas made the claim: Datalog is better than SQL for large queries in small amounts of space. My question is: Is datalog more efficient than SQL for…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
7
votes
1 answer

Has entities in Datomic metadata like creation and update time?

I want to know e.g. when an entity was created or updated. Should I create an attribute like :created-at and :update-at or Datomic has theses attributes by default? Or any manner to find out when an entity was created or updated?
Felipe
  • 16,649
  • 11
  • 68
  • 92
7
votes
2 answers

How to deal with a variable in a library that needs to be set outside of it?

I'm using Datomic in several projects and it's time to move all the common code to a small utilities library. One challenge is to deal with a shared database uri, on which most operations depend, but must be set by the project using the library. I…
konr
  • 2,545
  • 2
  • 20
  • 38
7
votes
1 answer

Nesting structures With Datomic

Using Datomic, I'm trying to think of how can I nest a list within a list? An example Clojure data structure would be something (see fig.1). I know that Datomic has the notion of references (ex. in fig.2). But those just look like scalar types, not…
Nutritioustim
  • 2,686
  • 4
  • 32
  • 57
7
votes
1 answer

how would one write a datomic query that takes the entire set into account

Is it possible to write these sort of queries in datomic? find the name of the oldest kid find the person with the lowest body-mass index (weight / height)
zcaudate
  • 13,998
  • 7
  • 64
  • 124
1 2
3
28 29