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

Add support for JDBC reader/writer? #131

Open
stormy-ua opened this issue May 16, 2020 · 1 comment
Open

Add support for JDBC reader/writer? #131

stormy-ua opened this issue May 16, 2020 · 1 comment

Comments

@stormy-ua
Copy link
Contributor

I am wondering if adding a type class for reading/writing from/to a SQL database via JDBC is being considered. It should be possible to implement something like this:

trait JdbcType[T] extends Converter[T, ResultSet, PreparedStatement]

and derive this converters for any case class. It could be seamlessly integrated with scio-jdbc then.

@nevillelyh
Copy link
Contributor

Should be doable, although there might be some ugly casts esp for nested/repeated fields?

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

No branches or pull requests

2 participants