public class MongoScriptRunner extends Object
| Constructor and Description |
|---|
MongoScriptRunner() |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(com.mongodb.DB db,
String script)
Evaluate a script on the database
|
public Object evaluate(com.mongodb.DB db, String script) throws Exception
db - database connection to usescript - script to evaluate on the databaseException - when evaluation on the database failsCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.