We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed02902 commit 446c375Copy full SHA for 446c375
1 file changed
docs/1_started.md
@@ -10,7 +10,7 @@ pip install nebula5_python==5.2.0
10
from source
11
12
```bash
13
-git clone -b https://github.com/vesoft-inc/nebula-python.git
+git clone -b dev https://github.com/vesoft-inc/nebula-python.git
14
cd nebula-python
15
pip install -e .
16
```
@@ -127,6 +127,23 @@ with NebulaClient(
127
128
If you prefer manual lifecycle control, you can explicitly open and close clients.
129
130
+- Sync version:
131
+
132
+```python
133
+from nebulagraph_python import NebulaClient
134
135
+client = NebulaClient(
136
+ hosts=["127.0.0.1:9669"],
137
+ username="root",
138
+ password="NebulaGraph01",
139
+)
140
+try:
141
+ result = client.execute("RETURN 1 AS a, 2 AS b")
142
+ result.print()
143
+finally:
144
+ client.close()
145
+```
146
147
- Async version:
148
149
```python
0 commit comments