| tbl_sqlite | R Documentation |
Opens a SQLite database and lazily scans a table. Column types are inferred
from declared types in the CREATE TABLE statement. All filtering, grouping,
and aggregation is handled by vectra's C engine — no SQL parsing needed.
No data is read until collect() is called.
tbl_sqlite(path, table, batch_size = .DEFAULT_BATCH_SIZE)
path |
Path to a SQLite database file. |
table |
Name of the table to scan. |
batch_size |
Number of rows per batch (default 65536). |
A vectra_node object representing a lazy scan of the table.
f <- tempfile(fileext = ".sqlite")
write_sqlite(mtcars, f, "cars")
node <- tbl_sqlite(f, "cars")
node |> filter(cyl == 6) |> collect()
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.