Struct sql::plan::statement::show::ShowSelect [−][src]
pub struct ShowSelect<'a> {
scx: &'a StatementContext<'a>,
stmt: SelectStatement<Raw>,
}
Expand description
An intermediate result when planning a SHOW
query.
Can be interrogated for its columns, or converted into a proper Plan
.
Fields
scx: &'a StatementContext<'a>
stmt: SelectStatement<Raw>
Implementations
fn new(
scx: &'a StatementContext<'_>,
query: String,
filter: Option<ShowStatementFilter<Raw>>,
order: Option<&str>,
projection: Option<&[&str]>
) -> ShowSelect<'a>
fn new(
scx: &'a StatementContext<'_>,
query: String,
filter: Option<ShowStatementFilter<Raw>>,
order: Option<&str>,
projection: Option<&[&str]>
) -> ShowSelect<'a>
Constructs a new ShowSelect
from a query that provides the base
data and an optional user-supplied filter, order column, and
projection on that data.
Note that the query must return a column named name
, as the filter
may implicitly reference this column. Any ORDER BY
in the query is
ignored. ShowSelects
s are always ordered in ascending order by all
columns from left to right unless an order field is supplied.
Computes the shape of this ShowSelect
.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ShowSelect<'a>
impl<'a> !Send for ShowSelect<'a>
impl<'a> !Sync for ShowSelect<'a>
impl<'a> Unpin for ShowSelect<'a>
impl<'a> !UnwindSafe for ShowSelect<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more