public void PutDataset(QueryResult result, string id, QueryDataset data) { Console.WriteLine("Mock root server PutDataset callback called."); Console.WriteLine("Query Result: " + result.GetMessage()); }
public void PutQueryInfo(QueryResult result, string id, long lines) { Console.WriteLine("Mock root server PutQueryInfo callback called."); Console.WriteLine("Query Result: " + result.GetMessage()); }
/// <summary> /// test 8 /// testing the execution of the query /// </summary> /// <returns></returns> private string Test8() { Message m8 = new Message(); m8.TestID = 8; m_clientapi = new ClientAPI(); m_clientapi.SetRootServer(RootServerUrl); m_clientapi.SetAuthHostAddress(AuthServerUrl); m_clientapi.ConfigClient(); m_QueryObj = m_clientapi.ExecuteQuery("CREATE DB first_db", m_temptoken); if ((m_QueryObj.GetId() == 0) && (m_QueryObj.GetMessage() == "Database is not created")) { m8.Passed = false; m8.Msg = "m_clientapi.ExecuteQuery fails"; } else { m8.Passed = true; m8.Msg = "m_clientapi.ExecuteQuery succeeds"; } return m8.ToString(); }