powered by
For vectra_node inputs, data is streamed batch-by-batch to disk without materializing the full result in memory. For data.frame inputs, the data is written directly.
vectra_node
data.frame
write_sqlite(x, path, table, ...)
Invisible NULL.
NULL
A vectra_node (lazy query) or a data.frame.
File path for the SQLite database.
Name of the table to create/write into.
Reserved for future use.
db <- tempfile(fileext = ".sqlite") f <- tempfile(fileext = ".vtr") write_vtr(mtcars[1:5, ], f) tbl(f) |> write_sqlite(db, "cars") unlink(c(f, db))
Run the code above in your browser using DataLab