pub struct NativeQuery {
pub name: String,
pub kind: NativeQueryKind,
pub tables: Vec<String>,
pub columns: Vec<NativeQueryColumn>,
pub criteria: Vec<String>,
pub group_by: Vec<String>,
pub having: Vec<String>,
pub joins: Vec<NativeJoin>,
pub order_by: Vec<NativeOrder>,
pub select_flags: i64,
pub parameters: Vec<String>,
}Expand description
One native saved query as stored in the Jet/ACE file (M3, read-only).
Fields§
§name: StringQuery name from MSysObjects.
kind: NativeQueryKindQuery flavor from the object flags.
tables: Vec<String>FROM tables in attribute order.
columns: Vec<NativeQueryColumn>Selected columns.
criteria: Vec<String>WHERE expressions verbatim (attribute 8).
group_by: Vec<String>GROUP BY expressions verbatim (attribute 9) — a documented rest for execution (step 27.1, M12).
having: Vec<String>HAVING expressions verbatim (attribute 10) — a documented rest.
joins: Vec<NativeJoin>JOIN expressions with their flavors (attribute 7).
order_by: Vec<NativeOrder>ORDER BY entries (attribute 11).
select_flags: i64Select-type bits of attribute 1 (0x01 star, 0x02 distinct,
0x08 distinct row, 0x10 top, 0x20 percent).
parameters: Vec<String>Parameter names (attribute 2) — parameters stay a documented rest.
Implementations§
Source§impl NativeQuery
impl NativeQuery
Sourcepub fn query_def(&self) -> Option<QueryDef>
pub fn query_def(&self) -> Option<QueryDef>
Maps the decodable subset onto a QBE query definition: select
queries over exactly one table, plain field columns, no criteria,
grouping, joins or computed columns. This is the read-only design
grid’s projection only; execution goes through
crate::native_exec (step 27.1, M12).