Skip to content

Conversation

@coinsapi
Copy link
Member

@coinsapi coinsapi commented Sep 9, 2025

https://discord.com/channels/605843163013316634/1414862027964416021

This pull request adds support for MySQL databases to the controller runtime, improving compatibility and flexibility. The main changes involve updating dependencies, configuration, and schema handling to support MySQL alongside existing databases.

Database support improvements:

  • Added mysql-connector-java as a dependency in controller-runtime/build.gradle.kts and defined it in gradle/libs.versions.toml for proper version management. [1] [2] [3]
  • Updated the Database.setup() method in Database.kt to select the correct schema file (/schema-mysql.sql for MySQL/MariaDB, /schema.sql otherwise) based on the current SQL dialect.
  • Improved SQL command execution in Database.kt by parsing each command with jOOQ’s parser and adding error handling for better reliability during schema setup.

Codebase maintenance:

  • Imported SQLDialect and DSL in Database.kt to support dialect-based schema selection and parsing.

Info

  • Would be happy if you got any improvments

Copy link
Member

@InvalidJoker InvalidJoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm now

@InvalidJoker InvalidJoker merged commit 24b075e into develop Sep 10, 2025
@InvalidJoker InvalidJoker deleted the feat-mysql-driver branch September 10, 2025 08:36
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.

4 participants