Repository navigation
Ticket 3547: Add support for MySQL JSON - #221
stephenrauch wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
need to update the docs here as this is not psycopg2....there's no native JSON serializers for the MySQL DBAPIs right?
There was a problem hiding this comment.
The entire serial/deserial interface and the comment text is direct from the postgresql json stuff. So I left the comment that it was this way because of the psycopg2 adapter, because it is. :-) Would be thrilled to hear how better to structure this or maybe just remove it? Anyway, when you get a chance to look at it...
|
OK thanks very much for this, this is an amazing effort and it is quite rare to see something so complete. I need to review carefully, including taking a look at MySQL JSON's current capabilities to see if we are capturing likely features here, I see a lot of the PG featureset here which is great. I'm still not fully into 1.1 issues and there may be a delay of many weeks before I get around to this as I have a real backlog of issues and merges to address. |
|
No problem on any delays. Just starting a new project here and will be using JSON on MySql. Thus put this together so it would available for the new project. May well need to file down any sharp edges as the project comes together. |
|
OK. So I've thought a lot about this and looked much more closely; JSON is going to have to be somewhat unified between Postgresql and MySQL, which means the approach I use for PG JSON currently needs some changes and also the approach here needs modifications. I'm going to work from the ideas here, the sketch of the general concepts needed are in https://bitbucket.org/zzzeek/sqlalchemy/issues/3619/base-json-type-unification-across-pg-mysql. |
|
OK, love the thought you put into this, let me know if/how I can be of help... |
|
OK, I have rudimental cross-platform JSON support pushed up to master. What's missing from the MySQL version of the type is any of the stuff with the "" operators, which might just work implicitly, as well as the support of the == operator, which doesn't seem to be something that can be done with the PG type either. Feel free to review https://bitbucket.org/zzzeek/sqlalchemy/commits/a80bb4e5aabc4850a202f3a4d114c543357e37d5 which includes the implementation. Thanks for your help and support on this issue! |
No description provided.