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
0
votes
1 answer

Can I pass a vector as an argument to datomic query?

if i had a schema (in pseudocode) {:collection/name :type "string"}, {:photo/collection :type ref} And I had a vector of 3 collections from which I wanted to see all photos. Can I do something like below? (show me all photos that are in…
jdkealy
  • 4,807
  • 6
  • 34
  • 56
0
votes
2 answers

Datomic logical disjunction

I'm sorry if this is painfully obvious, but how do I represent logical disjunction in Datomic? For instance, if I'm looking for an entity whose name is "1" or whose age is less than 5, how would I go about that? Thanks!
Atlas
  • 33
  • 4
0
votes
1 answer

How to write touch-all (touch all reachable entities from an entity) in Datomic?

I wanted to write a function that would expand everything that is reachable from a given Datomic Entity. I am aware that this might be problematic if there are cycles, assume that entity is not cyclic. (defn touch-all "Touches `entity and all…
Stephen Cagle
  • 14,124
  • 16
  • 55
  • 86
0
votes
2 answers

how does the tempid number relate to the final :tempid hashmap?

If I want to stick a record into datomic: i.e. {:db/id #db/id[:db.part/user -1226692165], :address/country "Australia"} I get a map back: {:db-before #db{1000 #inst "2014-10-28T05:39:40.413-00:00"}, :db-after #db{1001 #inst…
zcaudate
  • 13,998
  • 7
  • 64
  • 124
0
votes
1 answer

cannot connect from jRuby (Diametric) to production Datomic transactor deployed remotely on Amazon EC-2

I'm using Peer Service to connect to the Datomic. I created Storage Service based on DynamoDB on Amazon by following https://www.youtube.com/watch?v=wG5grJP3jKY tutorial (using CloudFormation service, it's also referenced here…
Dale Cooper
  • 310
  • 2
  • 9
0
votes
2 answers

How to get all ref attribute values?

I touch an entity and get many entity ids. I want all the attribute values instead of the ids while keeping the nested structure. (d/touch (d/entity (get-db) (ffirst (find-all-families)))) => {:family/parent #{{:db/id 17592186045423} …
deadghost
  • 5,017
  • 3
  • 34
  • 46
0
votes
1 answer

How to retrieve all datomic created uris / database names?

Where does datomic store the uri's / database names ? I.e. where is Peer.connect() looking ? In the meantime I'm trying to debug the "web console" to see how the database drop down is populated.
mstram
  • 584
  • 1
  • 6
  • 13
0
votes
1 answer

Is it idiomatic to make a join entity?

When I say join entity I mean whatever the datomic equivalent to a SQL join table is. Say I have a parent entity with attribute name and I have a child entity with attribute name. parent is a in a many to many relationship with child as each parent…
deadghost
  • 5,017
  • 3
  • 34
  • 46
0
votes
1 answer

How to get details/error messages from Datomic's' transact'

Using 'load-data' below from the Clojure repl (using 'util.clj' from the tutorial https://github.com/swannodette/om/wiki/Intermediate-Tutorial with a modified schema and initial data set) to load data into a new Datomic database, the data does not…
christopherbalz
  • 722
  • 1
  • 8
  • 22
0
votes
1 answer

error using the touch function in datomic

I read on few sites about the [touch] and how it should be used, but it does not work on my tests. My project.clj uses the following : > ... > :dependencies [[org.clojure/clojure "1.6.0"] > [com.datomic/datomic…
dag
  • 288
  • 2
  • 10
0
votes
1 answer

Local copy of the 'value' of the database and security concerns

As I understand it, a datomic database is downloaded/copied onto the peer and all queries are done on the peer. How is this secure? If the user is only authorized to view certain data but actually has all the data on his machine, where is the…
Zuriar
  • 11,096
  • 20
  • 57
  • 92
0
votes
1 answer

Determining if an attribute exists in Datomic (Datomisca)

I am trying to find an efficient way to determine if a Datomic attribute is already defined in a database. I am using the Scala wrapper Datomisca. Here is the best way that I have found so far: val exists = Datomic.q(Query(""" [:find ?attr …
Ralph
  • 31,584
  • 38
  • 145
  • 282
0
votes
1 answer

Can Datomic simplify querying data contained in dynamically accessed HTML documents?

I need to write an API which would provide access to data being served as HTML documents from a web server. I need for my users to be able to perform queries over the data. Say on a web site there is a page which lists items and their owners. Then…
user7610
  • 25,267
  • 15
  • 124
  • 150
0
votes
1 answer

Error building fluxgraph: how do I resolve error during tests while running "mvn package"?

I found some repositories like fluxgraph that had some additional commits meant to update them to use a much more recent tinkerpop blueprints API. I would like to stay as up to date as possible, but when I checked out each of the following two…
Adam Miller
  • 1,756
  • 1
  • 25
  • 44
0
votes
1 answer

Split Entity into different partitions

I am developing a webapp which makes use of datomic. Like every webapp I do have a user management which I want to provide as a separate module/library. Now my Idea is to have a basic user schema with an email, password and an enabled flag. Then,…
sveri
  • 1,372
  • 1
  • 13
  • 28
1 2 3
28
29