nycflights13_create_sqlite {dittodb} | R Documentation |
Create an in-memory SQLite database for testing
Description
Create an in-memory SQLite database for testing
Usage
nycflights13_create_sqlite(location = ":memory:", ...)
Arguments
location |
where to store the database |
... |
additional parameters to connect to a database (most are passed on
to |
Value
RSQLiteConnection
Examples
if (check_for_pkg("RSQLite", message)) {
con <- nycflights13_create_sqlite()
DBI::dbGetQuery(
con,
"SELECT year, month, day, carrier, flight, tailnum FROM flights LIMIT 10"
)
DBI::dbDisconnect(con)
}
[Package dittodb version 0.1.8 Index]