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

Function NewBundleReader

internal/storage/postgres/bundle_reader.go:25–30  ·  view source on GitHub ↗
(database *db.Postgres)

Source from the content-addressed store, hash-verified

23}
24
25func NewBundleReader(database *db.Postgres) *BundleReader {
26 return &BundleReader{
27 database: database,
28 txOptions: pgx.TxOptions{IsoLevel: pgx.ReadCommitted, AccessMode: pgx.ReadWrite},
29 }
30}
31
32func (b *BundleReader) Read(ctx context.Context, tenantID, name string) (bundle *base.DataBundle, err error) {
33 ctx, span := internal.Tracer.Start(ctx, "bundle-reader.read-bundle")

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected