-
Hi, I am trying to apply the sql-export of my model. It starts with a few But the following How should I set up my project so that when I apply a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Atm I am using |
Beta Was this translation helpful? Give feedback.
-
Hi @dekiesel The .sql file is created in the way pgModeler runs the commands internally. Having said that, if you want to run the script as-is and create the objects correctly, use the export tool either in GUI or CLI (pgmodeler-cli). If you want to run the script manually (for example, via |
Beta Was this translation helpful? Give feedback.
Hi @dekiesel
The .sql file is created in the way pgModeler runs the commands internally. Having said that, if you want to run the script as-is and create the objects correctly, use the export tool either in GUI or CLI (pgmodeler-cli).
If you want to run the script manually (for example, via
psql
) , you have to edit the file and put a\c [database]
after the line that creates and sets the permissions over the new database so the PostgreSQL client can connect to the correct database and run the rest of commands. The way you are doing is another alternative to workaround this issue. Anyway, I can try to add an instruction in the generated file so you don't need to keep adding the\c
every time.