refactor: Support Postgres only#95
Conversation
m-t-a97
commented
Jul 7, 2026
- Removed support for SQLite and MySQL
- Removed SQLite watermill provider
- Only Postgres migrations are supported now
- Integration tests spin up local postgres container which replaced sqlite in-memory
- Removed various Golang package dependencies such as SQLite, MySQL and more
- Removed dependency on CGO
- Removed support for SQLite and MySQL - Removed SQLite watermill provider - Only Postgres migrations are supported now - Integration tests spin up local postgres container which replaced sqlite in-memory - Removed various Golang package dependencies such as SQLite, MySQL and more - Removed dependency on CGO
|
So you dropping support for anything else than Postgres? |
Yes ideally because of the maintenance burden and also there are certain quirks with each database and we can't fully leverage the full benefits of each as that requires custom checks against the dialect. As a solo developer building Authula, it's just too much work for me to maintain and I don't want to maintain this headache any longer. I would rather have Authula focus on one database (Postgres) and actually be able to utilise all its benefits and provide the best solution out there instead of finding workarounds or having half baked solutions whereby I have to make sacrifices due to having to support multiple databases. For example Postgres has a native JSONB data type whereas SQLite and MySQL don't have that, so this means the code will behave differently and we won't be able to even carry out JSONB related operations in the code without doing "if statements" just to check which dialect it is. A lot of custom code is required when trying to build these types of solutions not to mention writing unit tests for them too which is very time-consuming (even with AI as you have to check all the code obviously). Sorry for the long reply but that's just my opinion on how things are for me when trying to build and maintain this project. Are you personally using anything other than Postgres right now for Authula? If so, I'd be happy to hear your thoughts. Also feel free to let me know if you have any feedback or if you have suggestions. I'm always happy to hear from the community and I'd be open to exploring other options too if it can make working and maintaining this project easier. Thanks! |
|
I'm going to leave this PR open for a few days just to let anyone else reply and feel free to let me know your thoughts or if you have any feedback on this matter. |