Initial commit
This commit is contained in:
8
inspect_db.py
Normal file
8
inspect_db.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from app_core.db.database import engine
|
||||
from sqlalchemy import text
|
||||
import pandas as pd
|
||||
|
||||
with engine.connect() as conn:
|
||||
df = pd.read_sql(text('SELECT * FROM "tenantpostings" LIMIT 1'), conn)
|
||||
print("Columns in tenantpostings:")
|
||||
print(", ".join(df.columns.tolist()))
|
||||
Reference in New Issue
Block a user