CBSE BOARD XII, asked by Anonymous, 3 months ago

Explain database connection in Python Flask?​

Answers

Answered by NicolasSam
0

Explanation:

It is used to store data that might be accessed by multiple functions during the request. The connection is stored and reused instead of creating a new connection if get_db is called a second time in the same request. current_app is another special object that points to the Flask application handling the request.

Answered by gowrarajinchara
20

Answer:

It is used to store data that might be accessed by multiple functions during the request. The connection is stored and reused instead of creating a new connection if get_db is called a second time in the same request. current_app is another special object that points to the Flask application handling the request.

hope it is helpful to you

Similar questions