// execute a script public Result Execute(string command) { if (Selector.IsTest) { return(Result.Failure("This is a test!!!")); } if (Gateway == null) { return(Result.Failure(String.Format("Database {0} not connected!", Name))); } return(Gateway.RunScript(command, ExecModes.Raw)); }
void Run(string program) { Console.WriteLine("{0}", program); ShowResult(_api.RunScript(program)); }