Download Database/db.py from Muxperts/Veda: direct link, hf CLI and curl.
- Browser
- Download file 158 Bytes
-
https://huggingface.co/spaces/Muxperts/Veda/resolve/main/Database/db.py
- Command line
-
hf download hf://spaces/Muxperts/Veda/Database/db.py
-
curl -L -o db.py https://huggingface.co/spaces/Muxperts/Veda/resolve/main/Database/db.py
158 Bytes
| import sqlite3 | |
| DB_PATH="Database/teachers.db" | |
| def get_connection(): | |
| conn=sqlite3.connect(DB_PATH) | |
| conn.row_factory=sqlite3.Row | |
| return conn |