import psycopg2
conn = psycopg2.connect(host='192.168.0.61', port=55432, dbname='njts_acct', user='njts_app', password='njts_app2025')
cur = conn.cursor()
cur.execute("SELECT column_name FROM information_schema.columns WHERE table_name='journal_lines' ORDER BY ordinal_position")
for r in cur.fetchall(): print(r[0])
conn.close()
