Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce TypeMapper#bimap to make created related TypeMappers easier #27

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Aug 29, 2024

Rather than going through the whole extends TypeMapper def jdbcType def get def put, you can take an existing TypeMapper and call TypeMapper[T].bimap[V] with two conversion functions f: V => T and g: T => V

@lihaoyi lihaoyi merged commit ca22c43 into main Aug 29, 2024
12 checks passed
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