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

Method GetOrg

controlplane/admin/api_test.go:53–59  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

51 return orgs, nil
52}
53
54func (s *fakeAPIStore) CreateOrg(org *configstore.Org, teamID int64, schemaName string) error {
55 if _, ok := s.orgs[org.Name]; ok {
56 return errors.New("duplicate org")
57 }
58 for _, t := range s.teams[org.Name] {
59 if t.SchemaName == schemaName {
60 return configstore.ErrOrgTeamSchemaConflict
61 }
62 }

Callers

nothing calls this directly

Calls 1

copyOrgFunction · 0.85

Tested by

no test coverage detected