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

Function New

pkg/database/memory/memory.go:20–25  ·  view source on GitHub ↗

New - Creates new database schema in memory

(schema *memdb.DBSchema)

Source from the content-addressed store, hash-verified

18
19// New - Creates new database schema in memory
20func New(schema *memdb.DBSchema) (*Memory, error) {
21 db, err := memdb.NewMemDB(schema)
22 return &Memory{
23 DB: db,
24 }, err
25}
26
27func (m *Memory) RelationTupleID() (id uint64) {
28 m.Lock()

Calls

no outgoing calls

Tested by

no test coverage detected