For implementation in other packages, it is useful to have a function that returns the database connection, not a table from the given database.
import_from_fred()
import_from_emissions()
import_from_gis()
This will take the section of each database function that tests and creates a connection object and put that into its own function, which will later be called in import_from_x() to create the connection, before pulling the table.
For implementation in other packages, it is useful to have a function that returns the database connection, not a table from the given database.
import_from_fred()
import_from_emissions()
import_from_gis()
This will take the section of each database function that tests and creates a connection object and put that into its own function, which will later be called in
import_from_x()
to create the connection, before pulling the table.