Exemple #1
0
 public static string YqlStatement(string fields, string table, string whereParam, MaasOne.Net.IYqlIndexQuery opt)
 {
     System.Text.StringBuilder stmt = new System.Text.StringBuilder();
     stmt.Append("select ");
     stmt.Append(fields);
     stmt.Append(" from ");
     stmt.Append(table);
     if (opt != null && opt.Count > 0)
     {
         stmt.Append("(");
         stmt.Append(opt.Index.ToString());
         stmt.Append(",");
         stmt.Append(opt.Count.ToString());
         stmt.Append(")");
     }
     if (whereParam.Trim() != string.Empty)
     {
         stmt.Append(" where ");
         stmt.Append(whereParam);
     }
     return stmt.ToString();
 }
 private MaasOne.Base.ConnectionInfo GetConnectionInfo(System.Net.WebException ex, MaasOne.Base.ConnectionInfo oldConn)
 {
     return new MaasOne.Base.ConnectionInfo(ex, oldConn.Timeout, oldConn.SizeInBytes, oldConn.StartTime, oldConn.EndTime, oldConn.ResponseHeaders);
 }
Exemple #3
0
 public static string YqlUrl(string fields, string table, string whereParam, bool json, bool diag, MaasOne.Net.IYqlIndexQuery opt)
 {
     return YqlUrl(YqlStatement(fields, table, whereParam, opt), json, diag);
 }