Skip to content

Commit 583a6e5

Browse files
committed
Improving the Quick Start example in the docs
1 parent e086214 commit 583a6e5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ df = wr.s3.read_parquet("s3://bucket/dataset/", dataset=True)
5151

5252
# Retrieving the data from Amazon Athena
5353
df = wr.athena.read_sql_query("SELECT * FROM my_table", database="my_db")
54+
55+
# Getting Redshift connection (SQLAlchemy) from Glue Catalog Connections
56+
engine = wr.catalog.get_engine("aws-data-wrangler-redshift")
57+
# Retrieving the data from Amazon Redshift Spectrum
58+
df = wr.db.read_sql_query("SELECT * FROM external_schema.my_table", con=engine)
5459
```
5560

5661
## [Read The Docs](https://aws-data-wrangler.readthedocs.io/)

docs/source/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ Quick Start
2727
# Retrieving the data from Amazon Athena
2828
df = wr.athena.read_sql_query("SELECT * FROM my_table", database="my_db")
2929
30+
# Getting Redshift connection (SQLAlchemy) from Glue Catalog Connections
31+
engine = wr.catalog.get_engine("aws-data-wrangler-redshift")
32+
# Retrieving the data from Amazon Redshift Spectrum
33+
df = wr.db.read_sql_query("SELECT * FROM external_schema.my_table", con=engine)
34+
3035
Read The Docs
3136
-------------
3237

0 commit comments

Comments
 (0)