Can typeorm validate the schema on application start?

Viewed 420

I know that typeorm can create the whole db schema or even synchronize the database schema with the entity definitions (see synchronize in Connection Options)

But in production I'd like to ask typeorm to just validate that the existing database schema matches the Entitiy definitions on application start:
e.g. if the tables, column, indizes, etc. exist

Is this possible?

1 Answers

02.2021: still don't know if typeorm can do that

In the meantime, we can use pg-structure to implement custom checks

Related