Open ImVexed opened 4 years ago
@ImVexed
Thanks for reporting!
Rapidash
uses queries that assumes MySQL
.
So, we try to modify code to support postgres
.
Thank you!!
@kanataxa
Thank you for considering it!
The folks over at SQLBoiler also have an issue tracking the consideration of using rapidash for caching here: https://github.com/volatiletech/sqlboiler/issues/639 just so you're aware.
@kanataxa Nice work! Could you squeeze in mssql
as well? :)
@nadilas I believe it currently only supports mysql
this issue is to expand it's support to postgres aswell.
@nadilas Yes. We try to support using Rapidash with other databases (postgres, mssql ..., etc.) as well as MySQL.
After trying to spin up the example project with postgres, I was met with the error:
panic: cannot warm up SecondLevelCache: cannot warm up SecondLevelCache. table is user_logins: failed show create table : failed to execute 'SHOW CREATE TABLE
user_logins': pq: syntax error at or near "CREATE"
Upon looking inside of
first_lelvel_cache.go
it seemsshowCreateTable
unconditionally executesSHOW CREATE TABLE
which seems to be a mySQL specific syntax.From what I can gather, it looks like you're attempting to dump the DDL of a given table. If so, something like:
Will give you:
However I'm concerned there are more places that mySQL specific SQL is hiding throughout the codebase.
Are there any ongoing efforts to allow more generic queries to be executed to support more databases?