import sys import os sys.path.append(os.path.join(os.getcwd(), 'Backend')) from app.core.database.db_session import SessionLocal from sqlalchemy import text db = SessionLocal() res = db.execute(text("SELECT * FROM crm_locations")).fetchall() print("Locations:", len(res)) for r in res: print(r)