The idea is to introduce functions called view/1 and view/2 such that:
create view(:my_view, from(u in "users", where: u.type == :student))
drop view(:my_view)
create requires a query to be given to the view, drop does not.
We will also introduce a create_or_replace/1 function, similar to create/1, but mean to be used with views.
The idea is to introduce functions called
view/1andview/2such that:createrequires a query to be given to the view,dropdoes not.We will also introduce a
create_or_replace/1function, similar tocreate/1, but mean to be used with views.