MCPcopy Create free account
hub / github.com/PostHog/duckgres / GetManagedWarehouse

Method GetManagedWarehouse

controlplane/admin/api_test.go:153–159  ·  view source on GitHub ↗
(orgID string)

Source from the content-addressed store, hash-verified

151 if _, ok := s.orgs[orgID]; !ok {
152 return gorm.ErrRecordNotFound
153 }
154 if _, ok := s.teams[orgID][team.TeamID]; ok {
155 return errOrgTeamExists
156 }
157 for _, t := range s.teams[orgID] {
158 if t.SchemaName == team.SchemaName {
159 return configstore.ErrOrgTeamSchemaConflict
160 }
161 }
162 team.OrgID = orgID

Callers

nothing calls this directly

Calls 1

copyWarehouseFunction · 0.85

Tested by

no test coverage detected