@query-farm/vgi 0.37.0 → 0.37.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,16 +35,19 @@ export interface AttachOptionSpec {
35
35
  * The option carries a credential: an API key, a token, a password, or
36
36
  * anything else that must not be shown, stored or logged in plain text.
37
37
  *
38
- * Credential options **MUST** be declared `secret: true`. Clients and the
39
- * DuckDB extension use the flag to mask the value, keep it out of result
40
- * cache keys (the extension stores a salted hash instead), `duckdb_databases()`,
41
- * logs, telemetry, shared links and exported configuration. They can also
42
- * supply it from a `vgi_attach` DuckDB secret, so the ATTACH statement never
43
- * carries it:
38
+ * Credential options **MUST** be declared `secret: true`. The value is still
39
+ * passed inline as an ordinary ATTACH option; the flag tells the DuckDB
40
+ * extension to redact it from `duckdb_databases()`, keep only a salted hash
41
+ * of it in its result-cache key, and never log it. Clients use the flag to
42
+ * mask the field and keep the value out of shared links and exported
43
+ * configuration.
44
+ *
45
+ * To keep the credential out of the SQL text itself, pass it as an
46
+ * expression:
44
47
  *
45
48
  * ```sql
46
- * CREATE SECRET (TYPE vgi_attach, SCOPE 'https://worker.example.com', api_key 'sk-...');
47
- * ATTACH 'sales' (TYPE vgi, LOCATION 'https://worker.example.com');
49
+ * ATTACH 'sales' (TYPE vgi, LOCATION 'https://worker.example.com',
50
+ * api_key getenv('SALES_API_KEY'));
48
51
  * ```
49
52
  *
50
53
  * Combines with `required` (a credential the catalog cannot attach without,