|
@@ -71,6 +71,17 @@ public class ViewController extends Controller {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public void executeSql4() {
|
|
|
+ try {
|
|
|
+ String sqlString = this.getPara("str");
|
|
|
+ List<Record> d = Db.use("connected").find(sqlString);
|
|
|
+ this.renderJson(d);
|
|
|
+ } catch (Exception e) {
|
|
|
+ // TODO: handle exception
|
|
|
+ this.renderText(e.toString());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public void executeSql3() {
|
|
|
try {
|
|
|
DruidPlugin druidPluginConnected = createConnectedDruidPlugin();
|