Skip to content

Consider exporting parseDSN #224

Closed
Closed
@xaprb

Description

@xaprb

I've just been writing some tests for an application that uses an environment variable to get its configuration, and one of the variables is a DSN. Part of my test is designed to try making a connection and handle the failures gracefully. The test itself also gets its config from the env var, which we set on CircleCI for example to connect to the database instance there. For these reasons it would be really helpful if my test could easily parse DSNs (maybe it's not obvious why, but that's the end result). For now I'm going to copy/paste parseDSN into my test file, but I do think this would be useful to export.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions