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

Support for SQL type transformation methods #24

Closed
jenetics opened this issue Aug 25, 2020 · 1 comment
Closed

Support for SQL type transformation methods #24

jenetics opened this issue Aug 25, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jenetics
Copy link
Owner

Allow a simple way for converting data types to its corresponding SQL types, and vice versa.

static <T, U, V> Field<T> Dctor.field(
	final String name,
	final SqlFunction<? super T, ? extends U> value,
	final Function<? super U, ? extends V> f
) {
	return field(name, (record, conn) -> f.apply(value.apply(record)));
}
@jenetics jenetics self-assigned this Aug 25, 2020
@jenetics jenetics added the enhancement New feature or request label Aug 25, 2020
@jenetics jenetics added this to the v1.2.0 milestone Aug 25, 2020
jenetics added a commit that referenced this issue Aug 25, 2020
jenetics added a commit that referenced this issue Aug 25, 2020
jenetics added a commit that referenced this issue Aug 25, 2020
jenetics added a commit that referenced this issue Sep 6, 2020
jenetics added a commit that referenced this issue Sep 6, 2020
jenetics added a commit that referenced this issue Sep 6, 2020
jenetics added a commit that referenced this issue Sep 6, 2020
jenetics added a commit that referenced this issue Sep 6, 2020
…sion

#24: Add additional mapper functionality.
@jenetics
Copy link
Owner Author

jenetics commented Sep 6, 2020

Merged into r1.2.0 branch.

@jenetics jenetics closed this as completed Sep 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant