From 2713568d8f8bfb73ca602ff0cb4f90415fd3b341 Mon Sep 17 00:00:00 2001 From: Michael Toy <66150587+mtoy-googly-moogly@users.noreply.github.com> Date: Fri, 30 Oct 2026 16:24:09 -0700 Subject: [PATCH] Config: how boolean and number env values are read Signed-off-by: Michael Toy <66150587+mtoy-googly-moogly@users.noreply.github.com> --- src/documentation/setup/config.malloynb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/documentation/setup/config.malloynb b/src/documentation/setup/config.malloynb index 4fb047aa..c81ad147 100644 --- a/src/documentation/setup/config.malloynb +++ b/src/documentation/setup/config.malloynb @@ -403,6 +403,8 @@ Any property value can be replaced with an environment variable reference. This The `{"env": "VAR_NAME"}` syntax looks up the value from the named environment variable at connection time. If the variable is not set, the field is omitted and the connection proceeds without it. +An environment variable is always text, so for a `boolean` or `number` property it is converted: `true` and `false`, in any case, become booleans, and numeric text such as `5432` becomes a number. A value that can't be converted, like `PG_PORT=abc`, is left out with a warning. + A few properties are exceptions, because doing without them is not safe: DuckDB's `securityPolicy` and BigQuery's `authClient` fail the connection rather than fall back to no policy and to ambient credentials. Leaving such a property out of the config entirely is still fine — the rule only applies once you have named a variable. You can also provide a plain string value directly — this is useful for testing but not recommended for shared or committed config files.