Skip to content

Commit ce19d96

Browse files
authored
docs: Update README.md (#32)
Added an opendistro example.
1 parent d931265 commit ce19d96

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,19 @@ rows = engine.connect().execute(
130130
print([row for row in rows])
131131
```
132132

133+
Or using DBAPI:
134+
```python
135+
from es.opendistro.api import connect
136+
137+
conn = connect(host='localhost',port=9200,path="", scheme="http")
138+
139+
curs = conn.cursor().execute(
140+
"select * from flights LIMIT 10"
141+
)
142+
143+
print([row for row in curs])
144+
```
145+
133146
### Known limitations
134147

135148
This library does not yet support the following features:

0 commit comments

Comments
 (0)