MCPcopy
hub / github.com/ent/ent / WithLockAction

Function WithLockAction

dialect/sql/builder.go:2336–2340  ·  view source on GitHub ↗

WithLockAction sets the Action of the lock.

(action LockAction)

Source from the content-addressed store, hash-verified

2334
2335// WithLockAction sets the Action of the lock.
2336func WithLockAction(action LockAction) LockOption {
2337 return func(c *LockOptions) {
2338 c.Action = action
2339 }
2340}
2341
2342// WithLockTables sets the Tables of the lock.
2343func WithLockTables(tables ...string) LockOption {

Callers 3

LockFunction · 0.92
TestQueryNodesFunction · 0.92
TestSelectWithLockFunction · 0.85

Calls

no outgoing calls

Tested by 3

LockFunction · 0.74
TestQueryNodesFunction · 0.74
TestSelectWithLockFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…