Works with a Mongo driver handling only queries,
using given query handler
.
Works with a Mongo driver handling only queries,
using given query handler
.
Driver and associated resources are released
after the function f
the result Future
is completed.
import reactivemongo.api.MongoDriver import acolyte.reactivemongo.{ AcolyteDSL, Request } AcolyteDSL.withFlatQueryHandler({ req: Request ¬ヌメ aResponse }) { d => val driver: MongoDriver = d Future(1+2) }
Works with a Mongo driver handling only write operations,
using given write handler
.
Works with a Mongo driver handling only write operations,
using given write handler
.
Driver and associated resources are released
after the function f
the result Future
is completed.
import reactivemongo.api.MongoDriver import acolyte.reactivemongo.{ AcolyteDSL, Request, WriteOp } AcolyteDSL.withWriteHandler({ cmd: (WriteOp, Request) ¬ヌメ aResp }) { d => val driver: MongoDriver = d Future(1+2) }
Works with a Mongo driver handling only queries,
using given query handler
.
Works with a Mongo driver handling only queries,
using given query handler
.
Driver and associated resources are released
after the function f
the result Future
is completed.
import reactivemongo.api.MongoDriver import acolyte.reactivemongo.{ AcolyteDSL, Request } AcolyteDSL.withQueryHandler({ req: Request ¬ヌメ aResponse }) { d => val driver: MongoDriver = d "aResult" }
Works with a Mongo driver handling only write operations,
using given write handler
.
Works with a Mongo driver handling only write operations,
using given write handler
.
Driver and associated resources are released
after the function f
the result Future
is completed.
import reactivemongo.api.MongoDriver import acolyte.reactivemongo.{ AcolyteDSL, Request, WriteOp } AcolyteDSL.withWriteHandler({ cmd: (WriteOp, Request) ¬ヌメ aResp }) { d => val driver: MongoDriver = d "aResult" }
Functions to work with handler (provided driver functions).