MCPcopy Create free account
hub / github.com/Permify/permify / RelationTupleID

Method RelationTupleID

pkg/database/memory/memory.go:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (m *Memory) RelationTupleID() (id uint64) {
28 m.Lock()
29 defer m.Unlock()
30 if m.rid == 0 {
31 m.rid++
32 }
33 id = m.rid
34 m.rid++
35 return id
36}
37
38func (m *Memory) AttributeID() (id uint64) {
39 m.Lock()

Callers 2

WriteMethod · 0.80
runOperationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected