Skip to content

Conversation

@OceaneBouhineauIRD
Copy link
Collaborator

Add connection to 2 or more databases in data_extraction for SQL.
The use of a single database is still possible, as previously with :
database_connection = furdeb::postgresql_dbconnection(
db_user = config_observe[["databases_configuration"]][["database1"]][["login"]],
db_password = config_observe[["databases_configuration"]][["database1"]][["password"]],
db_dbname = config_observe[["databases_configuration"]][["database1"]][["dbname"]],
db_host = config_observe[["databases_configuration"]][["database1"]][["host"]],
db_port = config_observe[["databases_configuration"]][["database1"]][["port"]]
)
But it is now possible to provide it with several databases to have all the extractions grouped together :
database_connection = list(furdeb::postgresql_dbconnection(
db_user = config_observe[["databases_configuration"]][["database1"]][["login"]],
db_password = config_observe[["databases_configuration"]][["database1"]][["password"]],
db_dbname = config_observe[["databases_configuration"]][["database1"]][["dbname"]],
db_host = config_observe[["databases_configuration"]][["database1"]][["host"]],
db_port = config_observe[["databases_configuration"]][["database1"]][["port"]]
),furdeb::postgresql_dbconnection(
db_user = config_observe[["databases_configuration"]][["database2"]][["login"]],
db_password = config_observe[["databases_configuration"]][["database2"]][["password"]],
db_dbname = config_observe[["databases_configuration"]][["database2"]][["dbname"]],
db_host = config_observe[["databases_configuration"]][["database2"]][["host"]],
db_port = config_observe[["databases_configuration"]][["database2"]][["port"]]
))

Add connection to 2 or more database in data_extraction
Add GitHubAction
Remove GitHubAction
Updating the connection class in data_extraction : from PostgreSQLConnection to PqConnection
@JeanneClement JeanneClement merged commit 093e1cd into development Feb 5, 2025
2 checks passed
@JeanneClement JeanneClement deleted the connection_to_2_databases branch February 5, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants