예제 #1
0
 // 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));
 }
예제 #2
0
 void Run(string program)
 {
     Console.WriteLine("{0}", program);
     ShowResult(_api.RunScript(program));
 }