Created
September 18, 2025 16:09
-
-
Save ianmcook/70f0308b8287b224dd35ab24a4fec674 to your computer and use it in GitHub Desktop.
Query Snowflake in R with ADBC (using driver manifests)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(adbcdrivermanager) | |
| drv <- adbc_driver("snowflake") | |
| db <- adbc_database_init( | |
| drv, | |
| username="USER", | |
| password="PASS", | |
| adbc.snowflake.sql.account="ACCOUNT-IDENT", | |
| adbc.snowflake.sql.warehouse="MY_WAREHOUSE", | |
| adbc.snowflake.sql.role="MY_ROLE" | |
| adbc.snowflake.sql.db="SNOWFLAKE_SAMPLE_DATA", | |
| adbc.snowflake.sql.schema="TPCH_SF1", | |
| ) | |
| con <- adbc_connection_init(db) | |
| con |> | |
| read_adbc("SELECT * FROM CUSTOMER LIMIT 5") |> | |
| tibble::as_tibble() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment