Introduce a DB dialect interface and per-dialect wrappers that expose connection, query and column type operations with pre/post SQL hooks.
Add a thin wrapper around pgx to open and verify a Postgres connection from a URL or individual parameters.