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

Method qualifiedTable

controlplane/admin/models_api.go:116–121  ·  view source on GitHub ↗

qualifiedTable returns the table name to read for a descriptor, schema- qualifying runtime tables with the CP runtime schema.

(d modelDescriptor)

Source from the content-addressed store, hash-verified

114
115// autoKeyPrefix namespaces the keys of auto-discovered tables ("auto:<schema>.<table>").
116const autoKeyPrefix = "auto:"
117
118// sensitiveColumnRe redacts VALUES of auto-discovered columns whose name looks
119// credential-shaped. The typed descriptors above redact precisely via json
120// tags; auto-discovered tables have no type to consult, so err toward
121// redaction — a bcrypt hash or ciphertext leaking is fatal, an over-redacted
122// secret NAME is a shrug. (Matches e.g. password, password_aws_secret,
123// ciphertext, token, nonce, credential.)
124var sensitiveColumnRe = regexp.MustCompile(`(?i)(password|secret|ciphertext|token|nonce|credential)`)

Callers 2

listModelsMethod · 0.95
getModelMethod · 0.95

Calls 1

RuntimeSchemaMethod · 0.80

Tested by

no test coverage detected