Process
Add driver to
supported_drivers vector
insupported_drivers()
function. Name should be the package that contains any driver functions you need. If end-users don’t have this package installed when trying to connect to this DBtype they will be prompted to install it. Only use CRAN packages please!Add user-facing UI to
utils_database_get_driver_specific_config_properties
function. If you need new params that arent already theconfig_list
this function returns, make sure to add a default to this property (e.g.NULL
that will be used for all other drivers). Take a read of the function - hopefully where you need to insert new code should be pretty obviousIf new config properties added: edit
utils_database_write_yaml()
- adding new args for each added configuration variables. Then edit call toutils_database_write_yaml()
inutils_database_get_or_set_config
function to pass the values provided by user to the function that actually writes it to config yaml.Add else if entry to bottom of
easydb_connect
that creates a connection object (usually usingDBI::dbConnect
but can be any function. useconfig$<config_var>
to acccess yaml config fields andcreds$username
andcreds$password
to access user creds from cred manager. Store connection object in varconnection
(this is what the function will return to user).Add the driver packages to list of
Suggests
inDESCRIPTION
fileAdd example usage to readme