Relative Content

Tag Archive for typeorm

Can I get db session id from QueryRunner

I hope to be able to print the SQL with a session tag, so that I can distinguish the start and end of a transaction, and which transaction a certain SQL statement belongs to.

TypeORM is trying to create an existing table during migration:generate

I am working with TypeORM, and I have an `Order` entity class. I haven’t made any changes to this class, yet when I run the `migration:generate` command, TypeORM attempts to add a new `order` table to the database, even though the table already exists. This results in an error stating that the table already exists.