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);
        }
Esempio n. 2
0
 public ShowStatement(ShowTarget target, ObjectName tableName)
 {
     Target = target;
     TableName = tableName;
 }
Esempio n. 3
0
 public ShowStatement(ShowTarget target)
     : this(target, null)
 {
 }
 public static ICursor Show(this IRequest request, ShowTarget target)
 {
     return(Show(request, target, null));
 }
Esempio n. 5
0
 public ShowStatement(ShowTarget target)
 {
     Target = target;
 }
Esempio n. 6
0
 public Prepared(ShowTarget target, ObjectName tableName)
 {
     Target    = target;
     TableName = tableName;
 }
Esempio n. 7
0
 public ShowStatement(ShowTarget target, ObjectName tableName)
 {
     Target    = target;
     TableName = tableName;
 }
Esempio n. 8
0
 public ShowStatement(ShowTarget target)
     : this(target, null)
 {
 }