db_open: Wrapper around pool::dbPool(): opens a database

View source: R/dbAccess.R

db_openR Documentation

Wrapper around pool::dbPool(): opens a database

Description

Wrapper around pool::dbPool(): opens a database

Usage

db_open(fileName, drv = RSQLite::SQLite(), ...)

Arguments

fileName

a character vector specifying the name and location of the database

drv

defines database connection type, default = RSQLite::SQLite()

...

to pass on additional parameters to pool::dbPool, exmples are host = "shiny-demo.csa7qlmguqrf.us-east-1.rds.amazonaws.com" username = "guest" password = "guest"

Value

database access 'handle'

Note

if no file with the name 'fileName' exists, then it will be created (but obviously it will be empty, so most further commands will fail)

if fileName == ":memory:" the database will be an in-memory database


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.