Relative Content

Tag Archive for typeormnode.js-typeorm

Typeorm Subscibrers UpdateEvent

async afterUpdate(event: UpdateEvent<Experience>) { const old_pub = event.databaseEntity; const new_pub = event.entity as Experience; const statusJustChanged = old_pub.status != new_pub.status; if (statusJustChanged) { // … MAKE SOME UPDATES } } The Typeorm Subscribers system don’t really work the way i expected. Some problems with my code above are: Sometimes the event.databaseEntity is null (eg: when […]

How Can I Connect With DAMENG DM8 Database

My customer needs to use DAMENG DM8 as database for the developed app 。
I used typeOrm + Mysql8 in that project , now I need to change database from mysql 2 DM8 , its quite hard ,maybe I need to develop a driver for typeOrm to support DM8 。
If anyone has developed connection driver , plz share some experience with me , thanks