sqlest-extractors - convert table data into case classes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

sqlest-extractors - convert table data into case classes

Brendan Maginnis

Hi,

sqlest-extractors is a small library for extracting case classes from table data:

  • Minimal work to set up sqlest-extractors with a new table type
  • Extractors are defined declaratively and are easily composed
  • Support for:
    • Case classes
    • Tuples
    • Options
    • List, Seq, Map, etc.
    • Mapped values
    • Grouping rows into single results
sqlest-extractors used to be part of the sqlest database library and was used to extract data from java.sql.ResultSet. It has been generalised to work with any form of table data

The readme at https://github.com/jhc-systems/sqlest/tree/master/extractors has a short but complete example of converting csv data into case classes

Check it out!

--
You received this message because you are subscribed to the Google Groups "scala-announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.