Description Usage Arguments Value Examples
This is a convenience function to refresh connections to database files.
1 2 | resetDatabase(func_conName, func_existingCon = NULL,
func_type = "connect")
|
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 |
An SQLite connection object to an SQLite database.
1 2 3 | # This function can be called to set, resset SQL connections
testCon <- resetDatabase("testCon")
dbDisconnect(testCon)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.