Skip to content

Conversation

bfabio
Copy link
Member

@bfabio bfabio commented Jun 1, 2023

Remove common.ErrDBUniqueConstraint, which was used as a workaround for the lack of abstraction in gorm.

With the update in go-gorm/gorm#6004 we can now fully use gorm for db related errors (fe. gorm.ErrDuplicatedKey).

@bfabio bfabio force-pushed the gorm-err-unique-violation branch from c9e16ef to a54001f Compare June 1, 2023 11:35
@bfabio bfabio force-pushed the gorm-err-unique-violation branch 2 times, most recently from b7496f8 to d251666 Compare June 17, 2023 22:05
Remove common.ErrDBUniqueConstraint, which was used as a workaround
for the lack of abstraction in gorm.

With the update in go-gorm/gorm#6004 we can now
fully use gorm for db related errors (fe. gorm.ErrDuplicatedKey).
@bfabio bfabio force-pushed the gorm-err-unique-violation branch from d251666 to 0ad6a82 Compare June 17, 2023 22:10
@bfabio bfabio merged commit 60d2758 into main Jun 17, 2023
@bfabio bfabio deleted the gorm-err-unique-violation branch June 17, 2023 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant