Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure from URI. #581

Open
1 task done
AntoineMontane opened this issue Jan 24, 2025 · 0 comments
Open
1 task done

Configure from URI. #581

AntoineMontane opened this issue Jan 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@AntoineMontane
Copy link

AntoineMontane commented Jan 24, 2025

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?
@AntoineMontane AntoineMontane added the enhancement New feature or request label Jan 24, 2025
@AntoineMontane AntoineMontane changed the title Configure from URL. Configure from URI. Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant