Process
Add driver to
supported_drivers vectorinsupported_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_propertiesfunction. If you need new params that arent already theconfig_listthis function returns, make sure to add a default to this property (e.g.NULLthat 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_configfunction 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_connectthat creates a connection object (usually usingDBI::dbConnectbut can be any function. useconfig$<config_var>to acccess yaml config fields andcreds$usernameandcreds$passwordto 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
SuggestsinDESCRIPTIONfileAdd example usage to readme
