Skip to content

Commit be504a9

Browse files
haozhunggreg
authored andcommitted
Make code example in Quick Start complete
1 parent cca2e83 commit be504a9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ $ pip install presto-python-client
1414
Use the DBAPI interface to query Presto:
1515

1616
```python
17-
conn = prestodb.dbapi.Connection(
18-
host=coordinator_hostname,
19-
port=coordinator_port,
17+
import prestodb
18+
conn=prestodb.dbapi.Connection(
19+
host='localhost',
20+
port=8080,
21+
user='the-user',
22+
catalog='the-catalog',
23+
schema='the-schema',
2024
)
2125
cur = conn.cursor()
22-
cur.execute('select * from system.runtime.nodes')
26+
cur.execute('SELECT * FROM system.runtime.nodes')
2327
rows = cur.fetchall()
2428
```
2529

0 commit comments

Comments
 (0)