w3tecch / typeorm-seeding

🌱 A delightful way to seed test data into your database.
https://www.npmjs.com/package/typeorm-seeding
MIT License
877 stars 131 forks source link

how to truncate tables? #218

Closed virusxd521 closed 2 years ago

virusxd521 commented 2 years ago

is there a way to truncate the tables? I want to keep the same amount of records in my tables on many seeding executions. I went through the docs and couldn't find any thing related to truncating...

Thanks in advanced

jorgebodega commented 2 years ago

Hi, truncating tables are, for me, completely out of scope of this package. TypeORM support raw sql queries, maybe that is the way