Wian Needham
2015-10-07 14:04:59 UTC
Hi Guys
I am trying out Datomic and building a POC for a project I am working on. I
am also fairly new to Datomic and might ask a stupid question or 2 :)
I have to added an attribute "employee/effDate" and I have set the type to
":db.type/instant", Next I would like to add data very similar to the
Seattle community tutorial but I cannot pass a date in my data file.
Below is my data that i would like to load and I have no idea what format
or data to pass for the effective date field
{
; add a temp key for the entiry
:db/id #db/id[:db.part/user -2],
:employee/id 2,
*:employee/effDate XXXXXX,* ; what should the format be for this?
"22015-01-01T00:00:00.00Z"?
:employee/firstName "Peter",
:employee/lastName "Jones"
}
As a next Followup question, I would also like to know how do i go about
querying the data for a date range via Java.
For example get all the entries where the effective date is between
01.01.2015 -> 01.04.2015.
Thanks in advance and Kind regards
I am trying out Datomic and building a POC for a project I am working on. I
am also fairly new to Datomic and might ask a stupid question or 2 :)
I have to added an attribute "employee/effDate" and I have set the type to
":db.type/instant", Next I would like to add data very similar to the
Seattle community tutorial but I cannot pass a date in my data file.
Below is my data that i would like to load and I have no idea what format
or data to pass for the effective date field
{
; add a temp key for the entiry
:db/id #db/id[:db.part/user -2],
:employee/id 2,
*:employee/effDate XXXXXX,* ; what should the format be for this?
"22015-01-01T00:00:00.00Z"?
:employee/firstName "Peter",
:employee/lastName "Jones"
}
As a next Followup question, I would also like to know how do i go about
querying the data for a date range via Java.
For example get all the entries where the effective date is between
01.01.2015 -> 01.04.2015.
Thanks in advance and Kind regards
--
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Datomic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datomic+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.