Register a lazy tbl or dbMatrix/dbSpatial as a VIEW in the SQL Rooms database
Source:R/launchBrowser.R
sqlrooms_register.RdCreates a SQL `VIEW` (optionally `TEMPORARY`) over `x` in the connection associated with the current SQL Rooms session. No data is materialized: the view is a lazy alias that the SPA / `/api/arrow-query` can query.
Arguments
- name
Character. View name to create.
- x
A lazy `tbl`, dbMatrix/dbSpatial, or data.frame.
- project
Optional. A `dbProject` R6 object or `DBIConnection`. Defaults to whatever was passed to [launchBrowser()].
- temporary
Logical. Create a `TEMPORARY VIEW` (default `FALSE`). Persisted (non-temporary) views are written to the database file and are visible to the SPA after the next page reload.
- overwrite
Logical. Use `CREATE OR REPLACE VIEW` (default `TRUE`).