>
> the dialect has .server_version_info 
>
> engine.dialect.server_version_info >= (9, 6) 
>
> but you need your engine and connection to handle that.  JSONB and JSON 
> have different operator support.    So you might want to do a 
> TypeDecorator around it or similar but you can only support a subset of 
> operations (contained by, contains, has_any, etc. aren't on JSON). 
>

thats perfect, thanks!

i could have been more clear -- i only need to write JSON.  it's basically 
a "graceful degradation"; an installation will still capture/write data as 
long as it meets some basic requirements, but operating on it will require 
an upgrade.

 

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to