Dan Romero
@dwr.eth
What's the best way to get a Postgres database schema into Claude to ask it to write queries?
20 replies
0 recast
36 reactions
rish
@rish
you can always get the latest schema from the database directly by running this query: SELECT table_name, column_name, data_type, is_nullable FROM information_schema.columns WHERE table_schema = 'public' -- swap with the right schema name on your side ORDER BY table_name, ordinal_position; paste what it gives you into LLM
0 reply
0 recast
1 reaction