Skip to content
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

Added MySQL System Catalogs #3442

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

terricain
Copy link
Contributor

I started out looking at #1171, realising that sqlc already contains all of the Postgres catalogs, then realised we didn't have any MySQL ones. Made a copy of the sqlc-pg-gen tool for MySQL, then tweaked the codegen to exclude the right schemas from being dumped into the output.

Adds:

  • Tables, Views, Functions and Procedures from the mysql, information_schema, performance_schema and sys databases.
  • sqlc-dolphin-gen tool to dump the above from a MySQL cluster.

Changes:

  • Schema exclusion logic to exclude specific sets of schema depending on the engine in use.

Fixes:

  • Typo in sqlc-pg-gen

@terricain
Copy link
Contributor Author

Ah looks like the schema exclusion bit in internal/codegen/golang/result.go needs to be propagated to kotlin plugin

@terricain
Copy link
Contributor Author

Have updated the kotlin plugin here - sqlc-dev/sqlc-gen-kotlin#24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant