mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-29 10:09:07 +02:00
* extract shared db conn + data repository * extract repository interface * protect against nested transactions * fix mysql and db conn creation * fix context management * remove query warpper * remove withContext and withLock wrapper * remove context from function call * remove in memory mode * fix nested transaction handling * use db directly * remove leftover test * remove pool close on error during conn creation
13 lines
410 B
Go
13 lines
410 B
Go
package db
|
|
|
|
// LockingStrength is the row lock a query holds until its transaction ends.
|
|
type LockingStrength string
|
|
|
|
const (
|
|
LockingStrengthUpdate LockingStrength = "UPDATE"
|
|
LockingStrengthShare LockingStrength = "SHARE"
|
|
LockingStrengthNoKeyUpdate LockingStrength = "NO KEY UPDATE"
|
|
LockingStrengthKeyShare LockingStrength = "KEY SHARE"
|
|
LockingStrengthNone LockingStrength = "NONE"
|
|
)
|