Skip to content

Conversation

LucaCappelletti94
Copy link
Contributor

@LucaCappelletti94 LucaCappelletti94 commented Oct 6, 2025

As per title, in this PR I moved several of the struct variants out of the Statement enum. This refactoring allows for implementing traits and methods which specifically expect one particular statement, and not all of them.

I have focused on the variants which I am familiar with, primarily those related to PostgreSQL. There are still other struct variant which we might want to move out, such as Drop, but that variant would need to be renamed into some other naming convention because of the collision with the Drop trait.

This PR works towards solving issues such as #1204

Best,
Luca

@LucaCappelletti94 LucaCappelletti94 changed the title [DRAFT] Moving all struct variants out of Statement enum to allow for trait impls for specific sub-variants Moving several struct variants out of Statement enum to allow for trait impls for specific sub-variants Oct 6, 2025
@LucaCappelletti94 LucaCappelletti94 marked this pull request as ready for review October 6, 2025 13:53
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.

1 participant