public static ICursor Show(this IRequest request, ShowTarget target, ObjectName objectName)
        {
            var result = request.ExecuteStatement(new ShowStatement(target, objectName));

            if (result.Type == StatementResultType.Exception)
            {
                throw result.Error;
            }

            if (result.Type != StatementResultType.CursorRef)
            {
                throw new InvalidOperationException("The SHOW statement was not executed correctly.");
            }

            return(result.Cursor);
        }
示例#2
0
 public ShowStatement(ShowTarget target, ObjectName tableName)
 {
     Target = target;
     TableName = tableName;
 }
示例#3
0
 public ShowStatement(ShowTarget target)
     : this(target, null)
 {
 }
 public static ICursor Show(this IRequest request, ShowTarget target)
 {
     return(Show(request, target, null));
 }
示例#5
0
 public ShowStatement(ShowTarget target)
 {
     Target = target;
 }
示例#6
0
 public Prepared(ShowTarget target, ObjectName tableName)
 {
     Target    = target;
     TableName = tableName;
 }
示例#7
0
 public ShowStatement(ShowTarget target, ObjectName tableName)
 {
     Target    = target;
     TableName = tableName;
 }
示例#8
0
 public ShowStatement(ShowTarget target)
     : this(target, null)
 {
 }