Open GreenFlux opened 1 year ago
cc @rlnorthcutt @sumitsum
I could contribute a regex to go with each protocol if it helps. I could use named groups so each form input is matched and labeled in the output.
Hi @GreenFlux thanks for offering the help. If possible, can you please create a document with various regex and share the link here ?
@sumitsum , will do. I can have this for you early next week.
Is there an existing issue for this?
Summary
Currently Appsmith only supports connection strings for creating MongoDB datasources. This feature request is for a new Connection String Importer to be added at the top level in the Create Datasource list, rather than add a string importer input to each separate datasource form.
This would be similar to the curl importer, and would be an intermediate form, before landing on the actual datasource form. It should be able to test the string to ensure it is valid for the given protocol, and if valid, create a new draft datasource of the correct type, with all values filled in.
Why should this be worked on?
This library may be helpful in parsing DB URLs: https://npm.runkit.com/parse-database-url
@GreenFlux has provided regex for various DBs here .