Integrate with Jdbi:
Basic usage:
{
use(new Jdbi());
get("/", req {@literal ->} {
DBI dbi = req.require(DBI.class);
// ... work with dbi
});
get("/handle", req {@literal ->} {
try (Handle handle = req.require(Handle.class)) {
// ... work with dbi handle
}
});
}
Jdbi module require/extends https://github.com/jooby-project/jooby/tree/master/jooby-jdbc
Integrate with Jdbi:
Basic usage:
{ use(new Jdbi()); get("/", req {@literal ->} { DBI dbi = req.require(DBI.class); // ... work with dbi }); get("/handle", req {@literal ->} { try (Handle handle = req.require(Handle.class)) { // ... work with dbi handle } }); }Jdbi module require/extends https://github.com/jooby-project/jooby/tree/master/jooby-jdbc