krsp_pool: Create krsp connection from a Pool

Description Usage Arguments Value Examples

View source: R/krsp-pool.r

Description

The pool package is designed for managing database connectinos in Shiny apps when multiple users may be creating connections to the database simultaneously. This wrapper function for src_pool returns a krsp database connection object from a pool.

Usage

1
krsp_pool(pool)

Arguments

pool

A pool object.

Value

A connection to the krsp database for use with dplyr.

Examples

1
2
3
4
5
6
7
8
pool <- pool::dbPool(
  drv = RMySQL::MySQL(),
  dbname = "krsp",
  host = "localhost",
  username = "root",
  password = ""
)
krsp_pool(pool)

mstrimas/krsp documentation built on May 23, 2019, 8:16 a.m.