reset_shapeDB: This is a convenience function to refresh connections to...

Description Usage Arguments Value Examples

View source: R/sourceSHAPE.R

Description

This is a convenience function to refresh connections to database files.

Usage

1
2
reset_shapeDB(func_conName, func_existingCon = NULL,
  func_type = "connect")

Arguments

func_conName

The filepath to which an SQLite connection is sought.

func_existingCon

If any value other than NULL, then any existing connection is first dropped prior to attempting to form a connection to the func_conName filepath.

func_type

This should be a character string of either connect, in which case a connection is made/refreshed to the filepath in func_conName", or any other value will cause disconnection

Value

An SQLite connection object to an SQLite database.

Examples

1
2
3
4
# This function can be called to set, resset SQL connections
fileName_testCon <- paste(tempdir(),"/testCon.sqlite",sep="")
testCon <- reset_shapeDB(fileName_testCon)
reset_shapeDB(testCon, func_type = "disconnect")

rSHAPE documentation built on July 19, 2019, 5:05 p.m.

Related to reset_shapeDB in rSHAPE...