mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-05 17:24:21 +01:00
select refactor: order by and basic agg kinda work
This commit is contained in:
@@ -638,6 +638,7 @@ impl ToTokens for Expr {
|
||||
}
|
||||
Self::Id(id) => id.to_tokens(s),
|
||||
Self::Column { .. } => Ok(()),
|
||||
Self::AggRef { .. } => Ok(()),
|
||||
Self::InList { lhs, not, rhs } => {
|
||||
lhs.to_tokens(s)?;
|
||||
if *not {
|
||||
|
||||
@@ -338,6 +338,11 @@ pub enum Expr {
|
||||
/// is the column a primary key
|
||||
is_primary_key: bool,
|
||||
},
|
||||
/// AggRef is a reference to a computed aggregate
|
||||
AggRef {
|
||||
/// index of the aggregate in the aggregates vector parsed from the query
|
||||
index: usize,
|
||||
},
|
||||
/// `IN`
|
||||
InList {
|
||||
/// expression
|
||||
|
||||
Reference in New Issue
Block a user