Implement in-application mutex to reduce DB_LOCKED errors
This commit is contained in:
9
scnserver/models/lock.go
Normal file
9
scnserver/models/lock.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package models
|
||||
|
||||
type TransactionLockMode string //@enum:type
|
||||
|
||||
const (
|
||||
TLockNone TransactionLockMode = "NONE"
|
||||
TLockRead TransactionLockMode = "READ"
|
||||
TLockReadWrite TransactionLockMode = "READ_WRITE"
|
||||
)
|
||||
Reference in New Issue
Block a user