pallets-eco / flask-sqlalchemy

Adds SQLAlchemy support to Flask
https://flask-sqlalchemy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
4.22k stars 898 forks source link

Provide new configuration keys for database URI. #1371

Open ialdaverag opened 3 weeks ago

ialdaverag commented 3 weeks ago

I would like to know if it is possible to add new configuration keys regarding the following values of the database URI:

I think this feature would be more convenient and explicit when defining the properties of the database we are connecting to, so that we would no longer have to write out the entire connection string, or it could simply be an alternative to writing it.

I have seen that the Flask-MySQL extension already has something similar to what I am proposing.

ThiefMaster commented 3 weeks ago

Personally I find a single connection string much nicer...