Skip to content

jdbi support #46

@jknack

Description

@jknack

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions