You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extracted the `foo.bar.baz` qualification logic that was duplicated
across several variants of `ColumnRef` and `TableRef`.
I need this to implement `schema.type`: #827, #922
I'll also need this to implement `schema.function` later:
#795 (reply in thread)
There are also immediate benefits. IMO, `ColumnRef` and `TableRef` (and
their pattern-matching) look considerably cleaner now. The `database.`
prefix is guaranteed to be supported everywhere where it may be needed.
The detailed changelog is in the diff. I fully preserved (and
documented) the existing codegen behavior, as evidenced by unchanged
output in tests. If this documented behavior looks suspicious (it kinda
does to me), let's fix that later in a separate PR. Here, the only
changes in tests are the refactoring that's needed for the new variants
to compile.
This is a relatively big breaking change for those users who dig within
the internals of `ColumnRef`, `TableRef`, and `SchemaTable`. But that's
very low-level and should be rare. My work project never does that,
despite depending on SeaORM/SeaQuery/SQLx very closely and frequently
getting generic or low-level.
## PR Info
- Dependents:
- #922
0 commit comments