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

Function NewSchemaReader

internal/storage/postgres/schema_reader.go:29–34  ·  view source on GitHub ↗

NewSchemaReader - Creates a new SchemaReader

(database *db.Postgres)

Source from the content-addressed store, hash-verified

27
28// NewSchemaReader - Creates a new SchemaReader
29func NewSchemaReader(database *db.Postgres) *SchemaReader {
30 return &SchemaReader{
31 database: database,
32 txOptions: pgx.TxOptions{IsoLevel: pgx.ReadCommitted, AccessMode: pgx.ReadOnly},
33 }
34}
35
36// ReadSchema returns the schema definition for a specific tenant and version as a structured object.
37func (r *SchemaReader) ReadSchema(ctx context.Context, tenantID, version string) (sch *base.SchemaDefinition, err error) {

Callers 3

gc_test.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected