id."Both of your problems stem from the inability to use keywords for keys
or values in FleetDB. This is the intended behavior, but as you
pointed out the documentation was wrong. I've since fixed the website.
In the case of defrecords you will need to covert the record to a map
with string keys before inserting into FleetDB. Likewise the keyword
value :male will need to be converted to "male" or "m" or similar.
Hope this helps,
- Mark
2011/1/7 Cédric Pineau <cedric...@gmail.com>:
Hi Cédric,
Both of your problems stem from the inability to use keywords for keys
or values in FleetDB. This is the intended behavior, but as you
pointed out the documentation was wrong. I've since fixed the website.
In the case of defrecords you will need to covert the record to a map
with string keys before inserting into FleetDB. Likewise the keyword
value :male will need to be converted to "male" or "m" or similar.
Hope this helps,
- Mark
Right, it is important to me that FleetDB be accessible from all
dynamic languages, and the greatest common denominator among them in
terms of data representation is JSON. In particular, not all languages
have a keyword-like type.
In terms of getting a more Clojure-specific interface, I think you're
best bet is to continue the approach you started to explore above,
which is to use a thin wrapper around the raw FleetDB interface (.i.e.
the interface FleetDB Clojure client exposes) to support more strongly
typed objects and more datatypes.
I can't think of a similar system of the top of my head that does
exactly what you're looking for out of the box, but do let us know
here if you find something like that!
- Mark
> Thanks,
>
> --
> Cédric
>
>
Right, it is important to me that FleetDB be accessible from all
dynamic languages, and the greatest common denominator among them in
terms of data representation is JSON. In particular, not all languages
have a keyword-like type.
In terms of getting a more Clojure-specific interface, I think you're
best bet is to continue the approach you started to explore above,
which is to use a thin wrapper around the raw FleetDB interface (.i.e.
the interface FleetDB Clojure client exposes) to support more strongly
typed objects and more datatypes.