moigagoo / norm

A Nim ORM for SQLite and Postgres
https://norm.nim.town
MIT License
378 stars 34 forks source link

force =true with obj.id != 0 in insert now use the given id #174

Closed Clonkk closed 1 year ago

Clonkk commented 1 year ago

This PR solves https://github.com/moigagoo/norm/issues/173

Clonkk commented 1 year ago

@moigagoo I used conflictPolicy & unified the behavior between SQLite & Postgres regarding manually inserted ids.

moigagoo commented 1 year ago

@moigagoo I used conflictPolicy & unified the behavior between SQLite & Postgres regarding manually inserted ids.

@Clonkk I think the reason I only implemented this feature for SQLite initially is that Postgres didn't have this at all.

Apparently, this works now as the tests pass, so I'm happy to merge this.

Thanks!