uptrace/bun

[Question] Does Bun support optimistic locking?

Open

#1,128 opened on Feb 14, 2025

View on GitHub
 (6 comments) (1 reaction) (1 assignee)Go (279 forks)user submission
enhancementhelp wanted

Repository metrics

Stars
 (4,826 stars)
PR merge metrics
 (Avg merge 76d 17h) (1 merged PR in 30d)

Description

Hi, maintainers!

I’m considering replacement into Bun in my project and want to check if it supports optimistic locking.

If not, is there any plan to support it in the future? If there is no plan to support it, I’m thinking of implementing it using model query hooks(BeforeInsert, BeforeUpdate and BeforeDelete), but I’d love to hear if there are better approaches.

Thanks!

Contributor guide