Skip to content

Adds missing Ecto.ParameterizedType functions#13

Merged
johnnyt merged 1 commit intomainfrom
fix-without-ecto
Sep 10, 2025
Merged

Adds missing Ecto.ParameterizedType functions#13
johnnyt merged 1 commit intomainfrom
fix-without-ecto

Conversation

@johnnyt
Copy link
Member

@johnnyt johnnyt commented Sep 10, 2025

Implements embed_as/2 and equal?/3 functions required by the Ecto.ParameterizedType behavior to resolve compilation warnings when UXID is used in projects with Ecto loaded.

  • embed_as/2 returns :self since UXIDs are already strings
  • equal?/3 performs simple equality comparison between UXIDs

Implements embed_as/2 and equal?/3 functions required by the
Ecto.ParameterizedType behavior to resolve compilation warnings
when UXID is used in projects with Ecto loaded.

- embed_as/2 returns :self since UXIDs are already strings
- equal?/3 performs simple equality comparison between UXIDs
@johnnyt johnnyt merged commit 0bcd601 into main Sep 10, 2025
1 check passed
@johnnyt johnnyt deleted the fix-without-ecto branch September 10, 2025 03:17
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