Skip to content

Commit 2642be4

Browse files
committed
Add Insert statement example on README
1 parent 2ce24b6 commit 2642be4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
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-
#### Request example
814+
#### Query statement
815815

816816
```python
817817
from pyslicer import SlicingDice
@@ -836,6 +836,14 @@ 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+
839847
#### Output example
840848

841849
```json

0 commit comments

Comments
 (0)