We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently the DuckDBAppender supports appending objects of type java.lang.String and primitive types like int, short, boolean and long.
When appending to a table that has nullable columns, it would be very convenient to have methods for these wrapper classes:
Given a class like
class Person { Integer age; Long ssn; }
Currently, one has to write
public void append(DuckDBAppender appender, Person person) throws SQLException { appender.beginRow(); if (person.age != null) { appender.append(person.age); } else { appender.append((String) null); } if (person.ssn != null) { appender.append(person.ssn); } else { appender.append((String) null); } appender.endRow(); }
While it could become:
public void append(DuckDBAppender appender, Person person) throws SQLException { appender.beginRow(); appender.append(person.age); appender.append(person.ssn); appender.endRow(); }
if DuckDBAppender would have support for the wrapper classes and do the null checking.
The text was updated successfully, but these errors were encountered:
#140
Sorry, something went wrong.
No branches or pull requests
Currently the DuckDBAppender supports appending objects of type java.lang.String and primitive types like int, short, boolean and long.
When appending to a table that has nullable columns, it would be very convenient to have methods for these wrapper classes:
Given a class like
Currently, one has to write
While it could become:
if DuckDBAppender would have support for the wrapper classes and do the null checking.
The text was updated successfully, but these errors were encountered: