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

Add generic <R extends Record> type to SelectXXXStep DSL type hierarchy for increased tuple type-safety #1875

lukaseder opened this Issue Oct 21, 2012 · 0 comments


None yet
1 participant

lukaseder commented Oct 21, 2012

With the introduction of tuples / row value expressions (#1058) and formal record types (#1874), the Select DSL type hierarchy can be enhanced with an <R extends Record> generic type parameter. This will allow for various improvements, such as semi-join typesafety in IN predicates:

// Compiles:;
row(1, "abc").in(select(2, "def").from(TABLE));

// Doesn't compile:"abc").from(TABLE));
row(1, "abc").in(select("def", 2).from(TABLE));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment