@@ -22,7 +22,7 @@ pub struct Select {
22
22
pub columns : Vec < SelectItem > ,
23
23
24
24
/// The FROM clause
25
- pub from : Option < SelectFrom > ,
25
+ pub from : Option < FromClause > ,
26
26
27
27
/// The WHERE clause
28
28
pub where_clause : Option < Box < Expression > > ,
@@ -67,7 +67,7 @@ pub enum SelectItem {
67
67
/// An AST for representing a FROM clause in the
68
68
/// [SELECT](https://www.sqlite.org/lang_select.html) statement
69
69
#[ derive( Debug , PartialEq , Clone ) ]
70
- pub enum SelectFrom {
70
+ pub enum FromClause {
71
71
/// Select from a table
72
72
Table ( QualifiedTableName ) ,
73
73
@@ -78,7 +78,7 @@ pub enum SelectFrom {
78
78
Subquery ( SelectFromSubquery ) ,
79
79
80
80
/// Select from cartesian product of tables
81
- Froms ( Vec < SelectFrom > ) ,
81
+ Froms ( Vec < FromClause > ) ,
82
82
83
83
/// Select from a JOIN clause
84
84
Join ( JoinClause ) ,
@@ -134,7 +134,7 @@ pub struct SelectFromSubquery {
134
134
/// A clause for a JOIN statement
135
135
#[ derive( Debug , PartialEq , Clone ) ]
136
136
pub struct JoinClause {
137
- pub lhs_table : Box < SelectFrom > ,
137
+ pub lhs_table : Box < FromClause > ,
138
138
139
139
pub join_tables : Vec < JoinTable > ,
140
140
}
@@ -143,7 +143,7 @@ pub struct JoinClause {
143
143
#[ derive( Debug , PartialEq , Clone ) ]
144
144
pub struct JoinTable {
145
145
pub join_type : JoinType ,
146
- pub table : Box < SelectFrom > ,
146
+ pub table : Box < FromClause > ,
147
147
pub constraints : Option < JoinConstraint > ,
148
148
}
149
149
0 commit comments