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

Method getManagedWarehouse

controlplane/admin/api.go:803–814  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

801 if err != nil {
802 return nil, orgExists, err
803 }
804 return stored, orgExists, nil
805}
806
807func managedWarehouseUpsertColumns() []string {
808 return []string{
809 "image",
810 // GORM's default naming strategy splits CamelCase on every
811 // uppercase-after-lowercase boundary, so `DuckLakeVersion` lands as
812 // `duck_lake_version` in Postgres — NOT `ducklake_version`. The JSON
813 // tag is `ducklake_version` but that only controls API I/O, not the
814 // DB column name. Mismatching this against the actual column makes
815 // the ON CONFLICT … DO UPDATE clause throw 42703.
816 "duck_lake_version",
817 "metadata_proxy_enabled",

Callers

nothing calls this directly

Calls 2

GetManagedWarehouseMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected