We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import org.jooby.couchbase.*; { use(new Couchbase("couchbase://localhost/default")); get("/", req -> { Bucket bucket = req.require(Bucket.class); //... do with default bucket }); }
Reactive version works with http://jooby.org/doc/rxjava/:
import org.jooby.couchbase.*; import org.jooby.rx.*; { use(new Rx()); use(new Couchbase("couchbase://localhost/default")); get("/", req -> { AsyncBucket bucket = req.require(AsyncBucket.class); //... do with default async bucket }); }
Basic CRUD will be available via Datastore service (provided by jooby)
Datastore
use("/api/beer") .post(req -> { return req.require(Datastore.class).upsert(req.body().to(Beer.class)); }) .get("/:id", req -> { return req.require(Datastore.class).get(req.param("id").value(), Beer.class); }) .delete("/:id", req -> { return req.require(Datastore.class).remove(req.param("id").value(), Beer.class); }) .get(req -> { return require(Datastore.class).query( Select.select("b.*").from("`beer-sample` b")); });
The text was updated successfully, but these errors were encountered:
2c541e4
No branches or pull requests
Reactive version works with http://jooby.org/doc/rxjava/:
Basic CRUD will be available via
Datastore
service (provided by jooby)The text was updated successfully, but these errors were encountered: