Skip to content

Configure from URI. #581

@AntoineMontane

Description

@AntoineMontane

Describe the feature

Would be glad to have single variable configuration as we have in some db library (sqlite:///, postgres:///, etc.), that would ease per-environment configuration.

Some drivers already have natural URI scheme like file:// http://, s3://, etc that we could handle, some drivers are already configured by url (redis, planetScale, ...? )

I envision an async createDriver(uri: string) that would load dynamically the driver associated to the uri, and then let each driver handle it's own scheme.

I would implement for a given set of driver and let more knowledgeable person handle the scheme for other drivers.

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions