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

Function NewBundleWriter

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

Source from the content-addressed store, hash-verified

23}
24
25func NewBundleWriter(database *db.Postgres) *BundleWriter {
26 return &BundleWriter{
27 database: database,
28 txOptions: pgx.TxOptions{IsoLevel: pgx.ReadCommitted, AccessMode: pgx.ReadWrite},
29 }
30}
31
32func (b *BundleWriter) Write(ctx context.Context, bundles []storage.Bundle) (names []string, err error) {
33 ctx, span := internal.Tracer.Start(ctx, "bundle-writer.write-bundle")

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected