Skip to content

Refactor DefaultTypeHandlerFactory to remove reflection#3818

Merged
roji merged 3 commits intomainfrom
ReflectionBegone
Jun 7, 2021
Merged

Refactor DefaultTypeHandlerFactory to remove reflection#3818
roji merged 3 commits intomainfrom
ReflectionBegone

Conversation

@roji
Copy link
Member

@roji roji commented Jun 6, 2021

As part of this, PostgresType can now be injected into handlers after construction.

Closes #3815

Note: after this PR, some handlers accept the PG type in the constructor, and others get it injected later. This inconsistency isn't ideal, but it isn't too bad (it's ultimately the handler factory's responsibility to make sure the PostgresType is set).

@roji roji requested a review from NinoFloris June 6, 2021 15:43
@roji roji requested a review from vonzshik as a code owner June 6, 2021 15:43
As part of this, PostgresType can now be injected into handlers after
construction.

Closes #3815
@roji roji force-pushed the ReflectionBegone branch from 2338711 to 84b5fd7 Compare June 6, 2021 15:51
Copy link
Member

@NinoFloris NinoFloris left a comment

Choose a reason for hiding this comment

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

Are we happy new() is allowed in reflection free mode 🤣

This works like a charm at TrimMode link btw.

@roji roji enabled auto-merge (squash) June 7, 2021 08:46
@roji roji merged commit c87b6f9 into main Jun 7, 2021
@roji roji deleted the ReflectionBegone branch June 7, 2021 08:51
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.

Refactor DefaultTypeHandlerFactory for trimming friendliness

3 participants