Execute, fetch and map in just a few lines of code

With sql2o you execute your query, fetch the result and map it to a POJO model, in just a few lines of code.

Often it is a one-liner, as long as you don't count the try-with-resouce block.

Sql2o uses named parameters.