No description
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| database | ||
| modules | ||
| .gitignore | ||
| config.ini | ||
| main.py | ||
| pyvenv.cfg | ||
| README.md | ||
| requirements.txt | ||
Python-DatabasePool
Quick Summary
This is an outline for a DatabasePool setup in my average personal Python application.
Essential Understandings
- From the database folder, can name the python file whatever is required. Can call the Class
- In this case its called DBName
- Can create a object from DBName
- DBName references DatabaseHelper, which calls to DatabasePool and DatabasePool calls to DatabaseConnection function to create a new connection as required.
- This feeds back to the DBName function which allows for the user to call their required query.
- Keeps the cursor and db_conn and returns it back to the DatabasePool to be called at a later time, lowering latency and delay.