MCPcopy Index your code
hub / github.com/coder/coder / NewPostgres

Function NewPostgres

enterprise/audit/backends/postgres.go:21–23  ·  view source on GitHub ↗
(db database.Store, internal bool)

Source from the content-addressed store, hash-verified

19}
20
21func NewPostgres(db database.Store, internal bool) audit.Backend {
22 return &postgresBackend{db: db, internal: internal}
23}
24
25func (b *postgresBackend) Decision() audit.FilterDecision {
26 if b.internal {

Callers 7

TestWorkspaceAutobuildFunction · 0.92
TestAIProviderAuditDiffFunction · 0.92
TestGroupAIBudgetFunction · 0.92
TestPostgresBackendFunction · 0.92
ServerMethod · 0.92

Calls

no outgoing calls

Tested by 6

TestWorkspaceAutobuildFunction · 0.74
TestAIProviderAuditDiffFunction · 0.74
TestGroupAIBudgetFunction · 0.74
TestPostgresBackendFunction · 0.74