mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-20 16:44:19 +01:00
move our dbsp-based views to materialized views
We will implement normal SQLite-style view-as-an-alias for compatibility, and will call our incremental views materialized views.
This commit is contained in:
@@ -478,6 +478,11 @@ cmd ::= createkw temp(T) VIEW ifnotexists(E) fullname(Y) eidlist_opt(C)
|
||||
self.ctx.stmt = Some(Stmt::CreateView{ temporary: T, if_not_exists: E, view_name: Y, columns: C,
|
||||
select: Box::new(S) });
|
||||
}
|
||||
cmd ::= createkw MATERIALIZED VIEW ifnotexists(E) fullname(Y) eidlist_opt(C)
|
||||
AS select(S). {
|
||||
self.ctx.stmt = Some(Stmt::CreateMaterializedView{ if_not_exists: E, view_name: Y, columns: C,
|
||||
select: Box::new(S) });
|
||||
}
|
||||
cmd ::= DROP VIEW ifexists(E) fullname(X). {
|
||||
self.ctx.stmt = Some(Stmt::DropView{ if_exists: E, view_name: X });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user