You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by Jamy Timmermans, Florent Bourgeois, BJR Matos, Chris Coggburn, Nico, Ádám Gólya, Albert Sadowski, Martin Ek, Glavin Wiechert, Tom Hill and 72 more
Reacted by Robert Kieffer, Yassin Mokni, Andrew Gertjejansen, limichange, Harekam Singh, mofelee, lishuai0214, Thiago Sciotta, Wouter, Puria Rad Jahanbani and 1 more
It doesn't seem like 5.7 is supported on travis yet (I'd rather not have to fiddle around with a script that manually installs it), so thats the first hurdle
Any progress on this? I would be interested in contributing, however I have yet to dive into Sequelize internals yet. Any pointers would be greatly appreciated! Thanks!
Reacted by Tosone, Nazar Aziz, David Gudeman, P Huh, Alan Pogrebinschi, Andrei Mukamolau, Matthieu Sieben, Jerome S., Ilia Sidorenko and Georgii Ivanov
Please don't +1 issues. It clutters the thread without adding value to the discussion and spams maintainers with notifications. Use GitHub reactions to upvote features.
Reacted by Mario Olivio Flores, Nico, Glavin Wiechert, Chris Coggburn, Amir Raminfar, Matthieu Sieben, Marlom Girardi, Dinesh, (Rew) Andrew McLagan, Moises Narvaez and 17 more
Reacted by Samuel Dillow, Felix Becker, Nico, necrom, Glavin Wiechert, Plamen Stoev, Dwayne Charrington, Ulysse Prygiel, gargs, Amir Raminfar and 31 more
Reacted by (Rew) Andrew McLagan, William Harkins, Cedric, James Gentes, Eugene C. and Georgii Ivanov
@insanehong Please read the comments above. Literally the last comment before yours reads:
"Please don't +1 issues. It clutters the thread without adding value to the discussion and spams maintainers with notifications. Use GitHub reactions to upvote features."
Reacted by Glavin Wiechert, Ulysse Prygiel, Chris Coggburn, jdrydn, Ryan Shillington and Narges
I decided to give it a whirl anyways and lo and behold using Sequelize.JSON as the datatype for a column works "well enough" in MySQL 5.7 - you're able to create the column with the appropriate data type, insert values, and update values.
Two caveats:
I haven't tried but I would imagine you can't perform WHERE queries on them the same way you can in PostgreSQL
The results are currently returned as strings, so you'll have to JSON.parse to get the results back as a proper object/array
While imperfect, it's more than useable for my use case. Cheers.
Reacted by Matthieu Harlé, Felix Becker, Erik Seliger, Indospace.io, Adriaan, Alex Mueller, Nikhil Erkimutt, Eugene C., Ryan Shillington, Hyunyoung Cho and 6 more
Why am I getting so much dislikes... I just told the truth and you're raging or what?
Reacted by Cedric, Glavin Wiechert, Ben Lisbakken, George W Langham, Kator James, Adriaan, Yael Brodsky, Adrian, Akshay Dhalwala, Chris Burrell and 15 more
It's not the place to complain about "JS Support" or whatever that is suppose to mean. There is no such thing. This project is open source, if you want/need something done, you gotta do it yourself or help the others make it. Complaining is not helping. If you wanna switch to Laravel, cool for you, go on but this thread is not a social network, nobody cares of your tech choices.
Reacted by Matthieu Harlé, Wang Yanhao, Cedric, Glavin Wiechert, Michael MacPherson, Indospace.io, Adriaan, Luciano Graziani, Yael Brodsky, Adrian and 21 more
I'd say I dislike the javascript ecosystem too, but coming here and saying this in a JS project repository is like screaming "HIT ME!", it is also irrelevant to this issue, and like any open source project you can:
Make the changes/additions yourself
Search for alternatives that do what you want
Patiently wait for someone to use their time to do something for free
In any case, being respectful to other's work is a minimum, whether you appreciate it or not.
Reacted by Nico, jmpedrosa, Ivan G, Cedric, Glavin Wiechert, Tosone, Junyi, qeesung, Ervi B, Fatih Kaya and 16 more
Activity
janmeier commentedon Oct 26, 2015
Interesting definitely! :)
It doesn't seem like 5.7 is supported on travis yet (I'd rather not have to fiddle around with a script that manually installs it), so thats the first hurdle
camerondubas commentedon Jan 29, 2016
+1
golya commentedon Jan 30, 2016
+1
gilo commentedon Feb 12, 2016
+1
twilly86 commentedon Mar 19, 2016
+1
miralem commentedon Mar 23, 2016
+1
tosone commentedon Mar 25, 2016
+1
seanzx85 commentedon Mar 30, 2016
+1
rromanw commentedon Apr 7, 2016
+1
saurabhverma2892 commentedon Apr 18, 2016
+1
ccg1415 commentedon May 24, 2016
+1
Glavin001 commentedon Jun 22, 2016
Any progress on this? I would be interested in contributing, however I have yet to dive into Sequelize internals yet. Any pointers would be greatly appreciated! Thanks!
janmeier commentedon Jun 23, 2016
@Glavin001 Perhaps you can draw some inspiration from #4013, which added geometry support.
Basically, you need to add some code to mysql/data-types, something like this https://github.com/sequelize/sequelize/blob/a89f0f818657fc289c97e7f433b3499d02e661b5/lib/dialects/postgres/data-types.js#L276-337. Parse handles converting data that comes from the DB to json, while stringify converts JSON to the format the db expects.
If you have futher questions, ask them here, open the PR and we can discuss further, or join us on slack :)
janmeier commentedon Jun 23, 2016
One problem is that travis-ci doesn't support mysql 5.7 out of the box - But you could try using https://gist.github.com/BenMorel/d981f25ead0926a0cb6d to update the mysql version.
If installing a new mysql version doesn't take too long, we might as well upgrade to the 14.04 image (which doesn't have mysql installed by default) - then we wouldn't have to manually upgrade gcc and clang https://github.com/sequelize/sequelize/blob/a89f0f818657fc289c97e7f433b3499d02e661b5/.travis.yml#L28-33
6 remaining items
felixfbecker commentedon Oct 25, 2016
Please don't +1 issues. It clutters the thread without adding value to the discussion and spams maintainers with notifications. Use GitHub reactions to upvote features.

insanehong commentedon Nov 29, 2016
+1
Rio517 commentedon Nov 29, 2016
@insanehong Please read the comments above. Literally the last comment before yours reads:
"Please don't +1 issues. It clutters the thread without adding value to the discussion and spams maintainers with notifications. Use GitHub reactions to upvote features."
soulman-is-good commentedon Feb 11, 2017
@Rio517 @felixfbecker try adding reaction to an issue on mobile version. Maybe I blind or something but there is none.
And just MHO but why not use github API for automation?
https://developer.github.com/v3/issues/comments/
seangrogg commentedon Feb 22, 2017
I decided to give it a whirl anyways and lo and behold using Sequelize.JSON as the datatype for a column works "well enough" in MySQL 5.7 - you're able to create the column with the appropriate data type, insert values, and update values.
Two caveats:
While imperfect, it's more than useable for my use case. Cheers.
toddsby commentedon Mar 18, 2017
I needed arrays/objects from JSON datatypes for a project I'm working on.
I found this: mysqljs/mysql#1267 (comment)
Which lead me to implement it in a fork here: toddsby/sequelize@69f3297
This won't give you full support for INSERT/UPDATE but works great for SELECT queries. You could extend this to support INSERT/UPDATE with queryFormat
chrishutchinson commentedon Apr 13, 2017
Any progress on this lately?
Edit: Just found #7106 🎉
joeljuca commentedon May 18, 2017
+1! 🎉
autaut03 commentedon Jul 1, 2017
God two years passed and it still throws an error.
Gonna switch to Laravel as soon as possible, I've never seen anything worse than JS and it's support....
thujikun commentedon Aug 18, 2017
Any progress?
autaut03 commentedon Aug 21, 2017
Why am I getting so much dislikes... I just told the truth and you're raging or what?
Freezystem commentedon Aug 21, 2017
It's not the place to complain about "JS Support" or whatever that is suppose to mean. There is no such thing. This project is open source, if you want/need something done, you gotta do it yourself or help the others make it. Complaining is not helping. If you wanna switch to Laravel, cool for you, go on but this thread is not a social network, nobody cares of your tech choices.
Shywim commentedon Aug 21, 2017
I'd say I dislike the javascript ecosystem too, but coming here and saying this in a JS project repository is like screaming "HIT ME!", it is also irrelevant to this issue, and like any open source project you can:
In any case, being respectful to other's work is a minimum, whether you appreciate it or not.
yungtechboy1 commentedon Dec 18, 2021
https://sequelize.org/ helped me