#typeorm ghost methods?
6 messages · Page 1 of 1 (latest)
About upsert, it adds ON CONFLICT DO UPDATE to the generated SQL for postgres which either performes and insert or update in a single query. MySQL equivalent of that is ON DUPLICATE KEY UPDATE
https://typeorm.io/repository-api
update- Partially updates entity by a given update options or entity id.
...
upsert- Inserts a new entity or array of entities unless they already exist in which case they are updated instead. Supported by AuroraDataApi, Cockroach, Mysql, Postgres, and Sqlite database drivers.
...
ah good to know, didn't know that
ah great, i trieed several times to find this
but the search results where garbage and chatgpt was even worse
thanks @plucky flower and @trim quail