unstorage
unstorage copied to clipboard
Configure from URI.
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
- [x] Would you be willing to help implement this feature?