sequelize-typescript-generator icon indicating copy to clipboard operation
sequelize-typescript-generator copied to clipboard

Set the schema automatically from the generated

Open gagantous opened this issue 3 years ago • 1 comments

Hi guys!

I have problem with the generated entity file which not included the schema name. My corp. used postgresql database and when we generated the file, and tried to use the entity, we had the problem because the DBA didnt set the default schema in postgresql which resulted and error because the table could not be find table.

Is there a reason why the generated file for postgresql database didnt include the schema name like below image ?

Regards.

Gagantous

image

gagantous avatar Jul 27 '22 17:07 gagantous

I think I have a PR that will set this. The purpose of it was to allow [schema].[tableName] format in MSSQL, but I think it will output the schema for Postgres too. #42

mplawless avatar Nov 17 '22 19:11 mplawless