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

Method Write

internal/storage/storage.go:79–79  ·  view source on GitHub ↗

Write inserts a new TupleCollection and AttributeCollection into the database for a specified tenant. Returns an encoded snapshot token representing the state of the database after the write operation and any error encountered.

(ctx context.Context, tenantID string, tupleCollection *database.TupleCollection, attributesCollection *database.AttributeCollection)

Source from the content-addressed store, hash-verified

77 // Write inserts a new TupleCollection and AttributeCollection into the database for a specified tenant.
78 // Returns an encoded snapshot token representing the state of the database after the write operation and any error encountered.
79 Write(ctx context.Context, tenantID string, tupleCollection *database.TupleCollection, attributesCollection *database.AttributeCollection) (token token.EncodedSnapToken, err error)
80
81 // Delete removes data from the database based on the provided tuple and attribute filters for a specified tenant.
82 // Returns an encoded snapshot token representing the state of the database after the delete operation and any error encountered.

Callers 15

usecase_test.goFile · 0.65
watch_test.goFile · 0.65
gc_test.goFile · 0.65

Implementers 6

dataClientpkg/pb/base/v1/service_grpc.pb.go
UnimplementedDataServerpkg/pb/base/v1/service_grpc.pb.go
NoopDataWriterinternal/storage/storage.go
DataWriterinternal/storage/postgres/data_writer.
DataWriterinternal/storage/memory/data_writer.go
DataServerinternal/servers/data_server.go

Calls

no outgoing calls

Tested by

no test coverage detected