-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Mobility with JSON backend and MySQL 5.7.22 in production #226
Comments
Wow, that's really interesting! Don't often get issues for features that you didn't know are already done. Out of curiosity, do you use querying on the json columns as well? |
Wow, so it seems that indeed, the syntax for querying mysql columns is almost identical to pg (or at least, MySQL has aliases that make it behave the same way). As of 5.7.13, you can use Ideally I'd like to add tests for MySQL before adding it to the docs, not sure Travis will work and locally I use MariaDB which I believe is not compatible with MySQL JSON, or at least works differently... in any case, could you confirm whether querying does indeed work for you? That would make a difference in whether to list it on the wiki/readme or not. |
Yep, searching works like expected. Here is a query example:
|
Hi everyone! Mysql: 5.7.15 I just configured the backend as :json and my models as documentations describe it.
When I am going to create a new Page on this way:
Something is wrong with create. I am trying on console rails:
Some help please. |
Sorry MySQL is not supported yet for the json backend, so I can't help you with this. I think that everything other than querying should work, but there are no tests for this case so I really can't know. |
Hi @shioyama, thanks so much! If I have time I can investigate to add support to mysql. Any recomendation for starting to do it? |
Actually the easiest starting point would be figuring out how to set up tests with MySQL json on Travis. There are shared examples that run against any backend. Right now they are only run against postgres, which you can see here at the top of the spec. If you remove that constraint (i.e. remove the |
Although the documentation doesn't mention one can use the json backend with mysql, we are using it already in production. It works as if we were using postgres. Maybe you can add MySQL with JSON backend to your test suite and update the documentation?
Mobility version: 0.6.0
Mobility backend:
:json
Thanks,
best regards
Lukas
The text was updated successfully, but these errors were encountered: