I have a working CB and MongoDB application.
This is a second project we are starting, we have the data in mongodb and
was hoping to have CB interact wtih it.
It seems this feature (table and columns overriding) does not work with
NOSQL data stores at least not with MongoDB.
I created a test DB in mysql and the feature works for the most part, the
only downside is we cant seem to override the 'id' field requirements in
models...
we have tried -columns([{id,"myid"}] with no success , "myid" would be the
current attribute name in the table
On Wednesday, November 19, 2014 10:35:28 PM UTC-4, ENTR0PY wrote:
>
> hello i have a table named *rating*
> with the columns :
> _id
> rating
>
> my model is below , but when i do boss_db:find(rating,[]).
> it retuns an empty list []
>
> for completeness the table has 2 records
>
> -module(rating , [Id , Rating])*.
> *-table("rating")*.
> * -columns([{id , "id"} , {rating , "rating"}]).-compile(export_all)
>
>
> *.*
>
>
>
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/05dab06b-fa8b-4eb6-98a3-0c214fb8dbb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.