src_memdb: Per-session in-memory SQLite databases.

Description Usage Arguments Examples

View source: R/src-sqlite.r

Description

src_memdb lets you easily access a sessio-temporary in-memory SQLite database. memdb_frame() works like data_frame, but instead of creating a new data frame in R, it creates a table in src_memdb

Usage

1
2
3

Arguments

...

A set of name-value pairs. Arguments are evaluated sequentially, so you can refer to previously created variables.

.name

Name of table in database: defaults to a random name that's unlikely to conflict with exist

Examples

1
2
3
4
5
6
7
if (require("RSQLite")) {
src_memdb()

df <- memdb_frame(x = runif(100), y = runif(100))
df %>% arrange(x)
df %>% arrange(x) %>% show_query()
}

sctyner/dplyr050 documentation built on May 17, 2019, 2:22 p.m.