Create a View of the current query. This can be an effective way to allow a query chain to remain lazy
Usage
as_view(x, tblname = tmp_tbl_name(), conn = cached_connection())
Examples
if (FALSE) { # interactive()
path <- system.file("extdata/spatial-test.csv", package="duckdbfs")
df <- open_dataset(path)
library(dplyr)
df |> filter(latitude > 5) |> as_view()
}