@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`.
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
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
|
-
*
|
|
47
|
-
*
|
|
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,
|