Fetched users with python
This commit is contained in:
9
backend/db/users.py
Normal file
9
backend/db/users.py
Normal 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
|
||||
Reference in New Issue
Block a user