File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pip install nebula5_python==5.2.0
1010from source
1111
1212``` bash
13- git clone -b https://github.com/vesoft-inc/nebula-python.git
13+ git clone -b dev https://github.com/vesoft-inc/nebula-python.git
1414cd nebula-python
1515pip install -e .
1616```
@@ -127,6 +127,23 @@ with NebulaClient(
127127
128128If you prefer manual lifecycle control, you can explicitly open and close clients.
129129
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+
130147- Async version:
131148
132149``` python
You can’t perform that action at this time.
0 commit comments