Spaces:
Sleeping
Sleeping
Download get_users.py from hisham-cmd/VortexCommerceBackend: direct link, hf CLI and curl.
- Browser
- Download file 231 Bytes
-
https://huggingface.co/spaces/hisham-cmd/VortexCommerceBackend/resolve/5bf519cdfd82cc4e05fc313fdd730c717cc42a4e/get_users.py
- Command line
-
hf download hf://spaces/hisham-cmd/VortexCommerceBackend@5bf519cdfd82cc4e05fc313fdd730c717cc42a4e/get_users.py
-
curl -L -o get_users.py https://huggingface.co/spaces/hisham-cmd/VortexCommerceBackend/resolve/5bf519cdfd82cc4e05fc313fdd730c717cc42a4e/get_users.py
231 Bytes
| import sqlite3 | |
| import os | |
| DB_PATH = os.path.join(os.path.dirname(__file__), "vortex.db") | |
| conn = sqlite3.connect(DB_PATH) | |
| cursor = conn.cursor() | |
| cursor.execute("SELECT name, email, role FROM users") | |
| print(cursor.fetchall()) | |