Skip to content

lnk_db_conn(): prefer standard PG* env vars to match fresh 0.36.0 #288

Description

@NewGraphEnvironment

If done: lnk_db_conn() and fresh::frs_db_conn() connect to the same database in the same environment. If never: on hosts that set both groups, a bare lnk_db_conn() goes to the PG_*_SHARE target (the bcfishpass tunnel) while frs_db_conn() goes to the PG* target (local fwapg). A pipeline mixing the two helpers reads from one DB and writes to another.

fresh#213 (fresh 0.36.0) changed frs_db_conn() to resolve explicit args → standard libpq vars → legacy PG_*_SHARE (deprecated, message once) → libpq defaults, and never mixes the groups. lnk_db_conn() (R/lnk_db_conn.R:38) still does PG_*_SHARE first, then PG*, then hardcoded defaults, per field. Its roxygen says it "works identically to frs_db_conn()", which is no longer true.

Proposed: have lnk_db_conn() delegate to fresh::frs_db_conn(), or mirror its resolver. Bump the fresh minimum to 0.36.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions