Fetched users with python

This commit is contained in:
Leons Aleksandrovs
2025-07-02 15:32:59 +03:00
parent 9803b5b35d
commit d72735e416
7 changed files with 46 additions and 0 deletions

9
backend/db/users.py Normal file
View File

@@ -0,0 +1,9 @@
# This file is for database functions
from db.db import get_db
def get_users():
conn = get_db()
cursor = conn.cursor()
cursor.execute("SELECT * FROM Employees")
users = cursor.fetchall()
return users