Skip to content

jcabi/jcabi-jdbc

Repository files navigation

EO principles respected here Managed by Zerocracy DevOps By Rultor.com We recommend IntelliJ IDEA

mvn PDD status Maven Central Javadoc Coverage Status jpeek report Hits-of-Code

More details are here: jdbc.jcabi.com.

Also, read this blog post: Fluent JDBC Decorator.

JdbcSession is a convenient fluent wrapper around JDBC:

import com.jcabi.jdbc.JdbcSession;
public class Main {
  public static void main(String[] args) {
    String name = new JdbcSession(/* JDBC data source */)
      .sql("SELECT name FROM foo WHERE id = ?")
      .set(123)
      .select(new SingleOutcome<String>(String.class));
  }
}

How to contribute?

Fork the repository, make changes, submit a pull request. We promise to review your changes same day and apply to the master branch, if they look correct.

Please run Maven build before submitting a pull request:

$ mvn clean install -Pqulice

Please make sure that you're doing so under user account without administrative rights, otherwise the build will fail (postgresql instance needed for tests can't be launched under admin/root account).