-
Notifications
You must be signed in to change notification settings - Fork 30
MySQL driver does not have default import #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So I have an end-to-end test to ensure that the generated code works with MySQL. You can see the import I'm using there works just fine. Can you help me understand why my example works and yours doesn't? |
@woowenjun99 I can also confirm that it's working fine in its current form. |
Hi @kyleconroy @yshrsmz try using "postgresql" as the engine for MySQL prior to my PR and it should produce the result. The issue should be fixed by the PR referenced to this GitHub issue. Will be closing this issue |
When I use the MySQL driver, sqlc generates
However, there is no default import for mysql. Changing to the following works:
The text was updated successfully, but these errors were encountered: