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

Method GetManagedWarehouse

controlplane/admin/api.go:322–328  ·  view source on GitHub ↗
(orgID string)

Source from the content-addressed store, hash-verified

320 if updates.HostnameAlias != nil {
321 if *updates.HostnameAlias == "" {
322 fields["hostname_alias"] = nil
323 } else {
324 fields["hostname_alias"] = *updates.HostnameAlias
325 }
326 }
327 found := false
328 err := s.db().Transaction(func(tx *gorm.DB) error {
329 // Serialize with org connection admission (request-owned leases read
330 // org limits under this lock) — see LockOrgConnectionAdmissionTx.
331 if err := configstore.LockOrgConnectionAdmissionTx(tx, name); err != nil {

Callers 1

Calls 1

dbMethod · 0.95

Tested by

no test coverage detected