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

Function NewDataWriter

internal/storage/memory/data_writer.go:28–32  ·  view source on GitHub ↗

NewDataWriter - Create a new DataWriter

(database *db.Memory)

Source from the content-addressed store, hash-verified

26
27// NewDataWriter - Create a new DataWriter
28func NewDataWriter(database *db.Memory) *DataWriter {
29 return &DataWriter{
30 database: database,
31 }
32}
33
34// WriteRelationships - Write a Relation to repository
35func (w *DataWriter) Write(_ context.Context, tenantID string, tupleCollection *database.TupleCollection, attributesCollection *database.AttributeCollection) (token.EncodedSnapToken, error) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected