mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 14:04:22 +01:00
sqlite3-parser: box big members of createindex
This commit is contained in:
@@ -95,13 +95,13 @@ pub enum Stmt {
|
||||
/// `IF NOT EXISTS`
|
||||
if_not_exists: bool,
|
||||
/// index name
|
||||
idx_name: QualifiedName,
|
||||
idx_name: Box<QualifiedName>,
|
||||
/// table name
|
||||
tbl_name: Name,
|
||||
/// indexed columns or expressions
|
||||
columns: Vec<SortedColumn>,
|
||||
/// partial index
|
||||
where_clause: Option<Expr>,
|
||||
where_clause: Option<Box<Expr>>,
|
||||
},
|
||||
/// `CREATE TABLE`
|
||||
CreateTable {
|
||||
|
||||
@@ -1077,8 +1077,8 @@ paren_exprlist(A) ::= LP exprlist(X) RP. {A = X;}
|
||||
//
|
||||
cmd ::= createkw uniqueflag(U) INDEX ifnotexists(NE) fullname(X)
|
||||
ON nm(Y) LP sortlist(Z) RP where_opt(W). {
|
||||
self.ctx.stmt = Some(Stmt::CreateIndex { unique: U, if_not_exists: NE, idx_name: X,
|
||||
tbl_name: Y, columns: Z, where_clause: W });
|
||||
self.ctx.stmt = Some(Stmt::CreateIndex { unique: U, if_not_exists: NE, idx_name: Box::new(X),
|
||||
tbl_name: Y, columns: Z, where_clause: W.map(Box::new) });
|
||||
}
|
||||
|
||||
%type uniqueflag {bool}
|
||||
|
||||
Reference in New Issue
Block a user