You can use this tool right in OpenAI's GPTs after creating an active connection (or just create a demo one with one click) in db-gpts.com. It connects to live postgres DB to fetch table names, schema and entity relations to generate more accurate SQL queries that can be run immediately with less modifications.
Show HN: DB GPTs Smarter Text-to-SQL GPTs that knows your schema/relations | Heykuki News