GitHub user kaspersorensen opened a pull request:
https://github.com/apache/metamodel/pull/112
Added support for postgresql's "json" and "jsonb" data types -> MAP
Hi all,
Here's a PR that adds MetaModel support for PostgreSQL's JSON based data
types. I'm currently on a project where we use this data type and unfortunately
MetaModel's support for it is very bad (breaks upon insert/update,
queries/returns it as a string). I think that it makes most sense to treat the
data type as a logical `MAP` type. Hope you agree.
To do this I had to do a refactor of moving static methods from `JdbcUtils`
to non-static methods on the `IQueryRewriter` interface. That way those methods
can be overridden and apply database-specific behaviour.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kaspersorensen/metamodel
feature/postgresql-json-datatypes
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/metamodel/pull/112.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #112
----
commit c420c5b0cabafaea38a139bb1bffd4eb2daa8e52
Author: Kasper Sørensen <[email protected]>
Date: 2016-06-27T05:16:24Z
Added support for postgresql's "json" and "jsonb" data types -> MAP
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---