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

Method IsDatabaseNameAvailable

controlplane/provisioning/api_test.go:156–163  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

154 for _, t := range s.teams[orgID] {
155 if t.SchemaName == up.SchemaName && t.TeamID != up.TeamID {
156 return nil, configstore.ErrOrgTeamSchemaConflict
157 }
158 }
159 if s.teams[orgID] == nil {
160 s.teams[orgID] = make(map[int64]*configstore.OrgTeam)
161 }
162 existing, ok := s.teams[orgID][up.TeamID]
163 if !ok {
164 backfill := up.BackfillEnabled == nil || *up.BackfillEnabled
165 row := &configstore.OrgTeam{
166 OrgID: orgID,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected