duckdb / duckdb_azure

Azure extension for DuckDB
MIT License
51 stars 17 forks source link

Does it support read credentials from environment variable? #78

Open RobinLin666 opened 2 months ago

RobinLin666 commented 2 months ago

For example: I don't want to set secret:

CREATE SECRET secret4 (
    TYPE AZURE,
    PROVIDER ACCESS_TOKEN,
    ACCESS_TOKEN '<value>'
    ACCOUNT_NAME '⟨storage account name⟩'
);

I want to it read token from environment variable directly,

import os
os.environ["AZURE_ACCESS_TOKEN"] = "..."