Skip to content

Ticket 3547: Add support for MySQL JSON - #221

Closed
stephenrauch wants to merge 1 commit into
zzzeek:masterfrom
stephenrauch:ticket_3547_mysql_json
Closed

stephenrauch wants to merge 1 commit into
zzzeek:masterfrom
stephenrauch:ticket_3547_mysql_json

Conversation

@stephenrauch

Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to update the docs here as this is not psycopg2....there's no native JSON serializers for the MySQL DBAPIs right?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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...

@zzzeek

zzzeek commented Dec 9, 2015

Copy link
Copy Markdown
Owner

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.

@stephenrauch

Copy link
Copy Markdown
Author

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.

@zzzeek

zzzeek commented Dec 28, 2015

Copy link
Copy Markdown
Owner

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.

@stephenrauch

Copy link
Copy Markdown
Author

OK, love the thought you put into this, let me know if/how I can be of help...

@zzzeek

zzzeek commented Jan 6, 2016

Copy link
Copy Markdown
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants