If you use db = DAL('mongodb:...')

tables get automatically an integer "id" field. It is not auto-increment 
and it is stored as a UUID by mongo. web2py converts the UUID to an integer 
and back so that web2py does not break.

On Thursday, 5 June 2014 23:08:03 UTC-5, Leonardo Tada wrote:
>
> I know the field id is autoincrement, but I need other field besides the 
> id, because I'm trying to use MongoDB and the field id that created is like 
> '{ "_id" : { "$oid" : "539139c0dfe28529f6fb72cb"}'. 
> Then have to create other autoincrement field besides the id.
> Anybody can help?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to