Slightly less opinion on the db ? #904
Replies: 3 comments 1 reply
-
There are a couple features that Postgres offers that Spina (and some of its plugins) rely on, one of which is jsonb. Some functionality (like querying json paths) can’t be done easily in other databases like MySQL. Another benefit is proper support for full-text search. (used in Spina Shop and Spina Pro) We could choose to support multiple databases, but that would require a lot more work and maintenance. That’s why we’ve decided to require Postgres for now. |
Beta Was this translation helpful? Give feedback.
-
Thanks for answering. And off course i understand that you use pg and have reasons to. But now you are forcing that choice on others. And i think you may not use the generator at all? So at minimum you could take the hard dependency out. So spina would not be dependent on pg. As opposed to either scaring non-pg users (like myself) off. |
Beta Was this translation helpful? Give feedback.
-
I agree that the pg dependency in the gemspec could be removed. I can't make any promises regarding future compatibility with other databases though. The readme should still say Spina requires Postgres. |
Beta Was this translation helpful? Give feedback.
-
So i am getting started, and i read the bit about spina being opinonated. Which i agree with, in general.
BUT, would it be possible to leave users to choose their db, rather than forcing PG
I really don't like the effort pg puts users through. And while that may mean that i am not a power user to appreciate all the pg benefits, i still wonder.
Is pg really bringing soo much to the table here? Json attributes are possible in any sql db. Just leave out the
b
, call itjson
I'd be happy to make the change if the pr would be accepted
Beta Was this translation helpful? Give feedback.
All reactions