Materializes an in-memory `data.frame` into the DuckDB database backing the current SQL Rooms session. When a `project` is supplied (or one was attached at `launchBrowser()` time) the table is written through the project's writable connection. Otherwise the data.frame is stashed in a package-level cache for later retrieval (back-compat behavior).
Details
For lazy `tbl` objects (dbplyr / dbMatrix / dbSpatial), use [sqlrooms_register()] instead, which creates a SQL VIEW with no data movement.
Examples
if (FALSE) { # \dontrun{
df <- data.frame(x = 1:10, y = rnorm(10))
sqlrooms_export_table("my_table", df)
} # }