Open senicko opened 2 days ago
The TiDB parser does not support the CREATE EVENT statement, which poses an issue (sqlc's MySQL engine relies on the TiDB parser). There is no workaround other than removing or commenting out the statement before processing with sqlc. I believe this is related to https://github.com/sqlc-dev/sqlc/pull/3130.
Version
1.26.0
What happened?
Hello! I am working on a side project and I am using MySQL events. The CREATE EVENT statement is a part of my migration file.
When I run
sqlc generate
I get the following error.(Code works fine of course when run agains MySQL database.)
I don't think sqlc needs to know about this event to generate my queries. It could be just skipped. I can't find any docs on how to do that, or if it's even possible. If someone could nudge me into where this could be implemented I am willing to try adding feature like this myself. I think it could look like
Idk, maybe there already is some solution for such cases. I appreciate any help!
Relevant log output
Database schema
SQL queries
No response
Configuration
Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
MySQL
What type of code are you generating?
Go