reset_shapeDB {rSHAPE} | R Documentation |
This is a convenience function to refresh connections to database files.
Description
This is a convenience function to refresh connections to database files.
Usage
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
# 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")
[Package rSHAPE version 0.3.2 Index]