Add output to final example.
FossilOrigin-Name: 41b6e2ad2170d7515943085037909a1539d03ae99e7c0a5a430a780e0421fc53
This commit is contained in:
parent
7a6dac7aed
commit
08f49331b4
1 changed files with 4 additions and 3 deletions
7
USAGE.md
7
USAGE.md
|
|
@ -495,7 +495,8 @@ res = conn.query """
|
||||||
for row in res:
|
for row in res:
|
||||||
var since = row[0]
|
var since = row[0]
|
||||||
var people = row[1].toList.map( proc(p:KuzuValue):KuzuStructValue = p.toNode )
|
var people = row[1].toList.map( proc(p:KuzuValue):KuzuStructValue = p.toNode )
|
||||||
echo &"""{people[0]["name"]} has known {people[1]["name"]} since {since}."""
|
echo &"""{people[0]["name"]} has known {people[1]["name"]} since {since}.""" #=>
|
||||||
|
# Bob has known Bruce since 2003.
|
||||||
|
# Bob has known Alice since 2009.
|
||||||
|
# Alice has known Bob since 2010.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue