This project provides an implementation of the Crud API for JDBC.
The implementation is quite basic at this time. Two Resource
types are currently supported:
SELECT
: JdbcReadableResource, a ReadableResourceINSERT
,UPDATE
,DELETE
: JdbcUpdatableResource, an UpdatableResource
SQL statements are passed into the API via JDBC-compatible PreparedStatement
strings (with optional placeholders for parameters). Therefore, the API is not able to differentiate among insertions, updates, or deletions, so it models them all uniformly with a single UpdatableResource
implementation.
Most applications will not use the above Resource
implementation classes directly. Instead, they will start with the corresponding ResourceProviders
, which implement URI-based lookup of particular Resources
. For example, JdbcReadableResourceProvider provides instances of JdbcReadableResource
on demand.
- The Crud API project (
crud-api
) defines the core abstractions and the public API on which this project is based. crud-api
is built on top of RxJava.- Crud HTTP (
crud-http
) is a sister project to this project, implemented for HTTP instead of JDBC. - Crud Voldemort (
crud-voldemort
) is a sister project to this project, implemented for Project Voldemort instead of JDBC.
All files in this project are copyright Rick Warren and, unless otherwise noted, licensed under the terms of the Apache 2 license.