/jcabi-jdbc

Fluent Wrapper of JDBC

Primary LanguageJavaOtherNOASSERTION

EO principles respected here Managed by Zerocracy DevOps By Rultor.com

Build Status PDD status Maven Central Javadoc Coverage Status Dependencies

jpeek report

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));
  }
}

Questions?

If you have any questions about the framework, or something doesn't work as expected, please submit an issue here.

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).