public interface JongoFactory
{ use(new Mongodb()); use(new Jongoby()); get("/", req -> { Jongo jongo = req.require(JongoFactory.class).get("alternate-db"); // work with jongo... }); }
Modifier and Type | Method and Description |
---|---|
org.jongo.Jongo |
get(String db)
Get a Jongo instance for the provided database.
|
org.jongo.Jongo get(String db)
Jongo
instance for the provided database.
db
- A database.
Jongo
instance.
Copyright © 2019. All rights reserved.