Open axeldetlofsson opened 4 months ago
hey @axeldetlofsson not exactly sure of what your intention is, but as I understand it, "database" in mysql is basically what postgres refers to as "schema", so it didn't make sense for me to add database switching. I also looked into how other db clients do it and it's basically the same.
Let me know is I answered your question please!
First time coding in GO, so this is more of a suggetion than a proper PR.
From what I understand the Mysql-driver does not support "database-switching", When I connect to a mysql-server without providing a default schema eg. "usrname:password@tcp(localhost:3306)/", I cannot use any helpers, nor expand any tables in the drawer.
With this change, I can now use default helpers in any schema/table,
It seems to expanding of tables in the drawer is more complex, maybe someone could point me in the right direction to implement this?