01 / SETUP
Install and load
Run these commands in a Haybarn SQL session. The extension is available from the community repository.
Haybarn 2.0.0 Β· SQL
INSTALL gcs FROM community;
LOAD gcs FROM community;
Using upstream DuckDB? Follow the maintainerβs installation instructions.
02 / QUERY
Usage example
Add auth credentials using Application Default Creds
SQL session and output
-- Add auth credentials using Application Default Creds
D CREATE SECRET secret (TYPE gcp, PROVIDER credential_chain);
-- Read a file from GCS
D SELECT * FROM read_text('gcss://rah-public-gcs-testing/quack.txt');
βββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββ¬ββββββββ¬βββββββββββββββββββββββββββ
β filename β content β size β last_modified β
β varchar β varchar β int64 β timestamp with time zone β
βββββββββββββββββββββββββββββββββββββββββββΌββββββββββΌββββββββΌβββββββββββββββββββββββββββ€
β gcss://rah-public-gcs-testing/quack.txt β π¦ β 4 β 2025-09-23 16:20:03-04 β
βββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββ΄ββββββββ΄βββββββββββββββββββββββββββ
Provided by northpolesec. Not yet verified on Haybarn 2.0.0.
Sample data & setupDocumentation and resources
Project and build details
- Repository
- northpolesec/duckdb-gcs
- License
- MIT
- Maintainers
- northpolesec
- Written in
- C++
- Build source
f55eef6635f5- Build definition
- Community descriptor