Niphlod, Thanks for your answer. Just to clarify that I have understood "I need not worry, Web2py DAL code will pick the right/correct adapter for me, and will support native JSON"
Cool !! -Mandar On Mon, May 5, 2014 at 12:24 AM, Niphlod <niph...@gmail.com> wrote: > the postgres2 adapter is a proof of concept for working with arrays, it's > not stable nor tested. stick to postgres. > > the default adapter for postgres first checks the version of the backend > and then updates the mappings to the proper type is json "native" support > is available. > > > On Sunday, May 4, 2014 7:23:07 PM UTC+2, Mandar Vaze wrote: >> >> I looked at the gluon/dla.py - and it seems native_json is set to true >> only for MongoDBAdapter (Default value in BaseAdapter is False) >> >> Postgres supports native datatype JSON since 9.3 (9.2?) >> But PostgresAdapter maps JSON DAL type to TEXT for PostgresAdapter >> >> 1. What am I missing (if anything) because Web2py does not support JSON >> as native data type ? >> 2. There seems to be postgres:psycopg2 and postgres*2*:psycopg2 in the >> adapter list (Neither seems to support native type JSON) - but which one >> should I use ? Is there a choice, or does web2py automatically select one >> for me (based on what ?) >> >> Thanks, >> -Mandar >> > -- > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/lYZ-et59-o0/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.