Skip to content
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

MySQL support? #43

Open
deadroxy opened this issue May 14, 2024 · 0 comments
Open

MySQL support? #43

deadroxy opened this issue May 14, 2024 · 0 comments

Comments

@deadroxy
Copy link

Any chance you're planning to add support MySQL databases?

I played around a bit and it's close to working out of the box except the JSONB_EXISTS and jsonb_object_keys methods which are Postgres specific. I have a JSON column in my database and apart from the missing methods, it seems like it could work. MySQL 8 introduced the JSON_CONTAINS_PATH method and JSON_EXTRACT has been available since v5. Either of those will work to check if a key exists. And the JSON_KEYS function allows for access to the key value store.

Looks like support for MySQL databases would be possible, but it would require a bunch of refactoring to allow for choosing different database adapters. I'll tinker around a bit more myself to see if I can get a fork working for my application, but it would be great to know if others are doing anything similar!

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

No branches or pull requests

1 participant