Deprecated API
Contents
-
MethodDescriptioncreate queries with
Connection
class instead, using try-with-resource blockstry (Connection con = sql2o.open()) { return sql2o.createQuery(query, name).executeAndFetch(Pojo.class); }
create queries withConnection
class instead, using try-with-resource blockstry (Connection con = sql2o.open()) { return sql2o.createQuery(query, name, returnGeneratedKeys).executeAndFetch(Pojo.class); }
useSql2o.getConnectionSource()
as more general connection provider