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); }
public ShowStatement(ShowTarget target, ObjectName tableName) { Target = target; TableName = tableName; }
public ShowStatement(ShowTarget target) : this(target, null) { }
public static ICursor Show(this IRequest request, ShowTarget target) { return(Show(request, target, null)); }
public ShowStatement(ShowTarget target) { Target = target; }
public Prepared(ShowTarget target, ObjectName tableName) { Target = target; TableName = tableName; }