Skip to content

Expose connection hooks #3

Description

@dbousamra

Summary

Connection hooks for dynamically resolving database credentials

Problem

Some workflows require dynamically resolving connection details (e.g. starting a local proxy and fetching credentials from a secrets manager) before a database connection can be established. The tool currently assumes static connection parameters, which makes these setups unsupported.

Proposed Solution

Add support for connection lifecycle hooks (pre-connect / on-connect) that allow running custom commands or scripts to dynamically supply host, port, username, and password at connection time.

Additional Context

Example use case:

  • Start a local Cloud SQL proxy
  • Fetch database credentials from a secrets manager

This pattern is common for cloud-managed databases and secrets-based auth.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions