Skip to content

Add SQL dialect abstraction - #47

Merged
eric-richardson1 merged 2 commits into
mainfrom
eric/dialect-abstraction
Apr 15, 2026
Merged

Add SQL dialect abstraction#47
eric-richardson1 merged 2 commits into
mainfrom
eric/dialect-abstraction

Conversation

@eric-richardson1

Copy link
Copy Markdown
Contributor

This PR is just a refactor that puts all SQL-dialect-specific differences behind an interface. See the Dialect interface in dialect.go. It also has an implementation for the MySQL dialect in dialect_mysql.go. Everything still works exactly the same as it did before. This will make it easier to support other types of databases. Will follow up with a postgres implementation once this lands.

@coffeegoddd coffeegoddd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks really good!

@eric-richardson1
eric-richardson1 merged commit aa4c593 into main Apr 15, 2026
2 checks passed
@eric-richardson1
eric-richardson1 deleted the eric/dialect-abstraction branch April 15, 2026 23:44
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.

2 participants