Skip to content

Commit dc5374f

Browse files
committed
Correct titles README
1 parent e96f9ab commit dc5374f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ print(client.result(query))
811811
### `score(json_data)`
812812
Retrieve inserted values as well as their relevance for entities matching the given query. This method corresponds to a [POST request at /data_extraction/score](https://docs.slicingdice.com/docs/score-extraction).
813813

814-
#### Query statement
814+
#### Request example
815815

816816
```python
817817
from pyslicer import SlicingDice
@@ -836,14 +836,6 @@ query = {
836836
print(client.score(query))
837837
```
838838

839-
#### Insert statement
840-
```python
841-
from pyslicer import SlicingDice
842-
client = SlicingDice('MASTER_OR_READ_API_KEY')
843-
query = "INSERT INTO default([entity-id], name, age) VALUES(1, 'john', 10)"
844-
print(client.sql(query))
845-
```
846-
847839
#### Output example
848840

849841
```json
@@ -870,7 +862,7 @@ print(client.sql(query))
870862
### `sql(query)`
871863
Retrieve inserted values using a SQL syntax. This method corresponds to a POST request at /query/sql.
872864

873-
#### Request example
865+
#### Query statement
874866

875867
```python
876868
from pyslicer import SlicingDice
@@ -879,6 +871,14 @@ query = "SELECT COUNT(*) FROM default WHERE age BETWEEN 0 AND 49"
879871
print(client.sql(query))
880872
```
881873

874+
#### Insert statement
875+
```python
876+
from pyslicer import SlicingDice
877+
client = SlicingDice('MASTER_OR_READ_API_KEY')
878+
query = "INSERT INTO default([entity-id], name, age) VALUES(1, 'john', 10)"
879+
print(client.sql(query))
880+
```
881+
882882
#### Output example
883883

884884
```json

0 commit comments

Comments
 (0)