modules/jooby-requery/src/main/java/org/jooby/requery/Requery.java
public static Requery completionStage(final String name, final EntityModel model) {
    return new Requery(name, CompletionStageEntityStore.class, model,
        conf -> new CompletableEntityStore(new EntityDataStore<>(conf)));
  }
public static Requery completionStage(final String name, final EntityModel model) {
    return new Requery(name, CompletionStageEntityStore.class, model,
        conf -> new CompletableEntityStore(new EntityDataStore<>(conf)));
  }
public static Requery completionStage ( final String name , final EntityModel model ) { return new Requery ( name , CompletionStageEntityStore . class , model , conf -> new CompletableEntityStore ( new EntityDataStore <> ( conf ) ) ) ; }
Creates an async Requery module with Java 8 data store.

<pre>{@code
{
use(Requery.completionStage(Models.DEFAULT));

get("/", () -> {
CompletionStageEntityStore store = require(CompletionStageEntityStore.class);
// work with reactive store
});
}
}</pre>

@param name Database name.
@param model Entity model.
@return A new {@link Requery} module.
Creates an async Requery module with Java 8 data store .