magnolify icon indicating copy to clipboard operation
magnolify copied to clipboard

Add support for JDBC reader/writer?

Open stormy-ua opened this issue 4 years ago • 1 comments

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.

stormy-ua avatar May 16 '20 00:05 stormy-ua

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

nevillelyh avatar May 18 '20 21:05 nevillelyh