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

Function NewDataWriter

internal/storage/postgres/data_writer.go:33–38  ·  view source on GitHub ↗
(database *db.Postgres)

Source from the content-addressed store, hash-verified

31}
32
33func NewDataWriter(database *db.Postgres) *DataWriter {
34 return &DataWriter{
35 database: database,
36 txOptions: pgx.TxOptions{IsoLevel: pgx.Serializable, AccessMode: pgx.ReadWrite},
37 }
38}
39
40// Write method writes a collection of tuples and attributes to the database for a specific tenant.
41// It returns an EncodedSnapToken upon successful write or an error if the write fails.

Callers 5

gc_test.goFile · 0.92
watch_test.goFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected