How to get only postgres database schema using golang script like only DDL script
Can you please try to describe your problem with different words? As it is now, it is hard to understand what you are asking.
Is there a way to get only DDL schema of postgres database tables, views, functions like pg_dump command using golang script and copy into plain text file.
Is there any reason why you can’t use
I’m not aware of how
pf_dump works exactly, but if it’s only relying on regular SQL to get the information it dumps, then you can reimplement that by the usual means of connecting and talking to a database.
You just need to figure out the correct queries, but that is unrelated to go.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.