Skip to content
Advertisement

Database connection string parsing in python

Given a database connection string structure (such like one you can find here) what’s the best way to parse a real URI string and get their component like user, password, database name and host?

Thank you very much

Advertisement

Answer

There is a Python library for that:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement