Tabs --> spaces in the USAGE.
FossilOrigin-Name: bb8b92f8484a93b53477ab933cc50ecf39c62914818e2877b200f7211a6eefd9
This commit is contained in:
parent
8094384b54
commit
fb44f6f67e
1 changed files with 10 additions and 10 deletions
20
USAGE.md
20
USAGE.md
|
|
@ -79,7 +79,7 @@ echo $db.config
|
||||||
|
|
||||||
# Is compression enabled?
|
# Is compression enabled?
|
||||||
if db.config.enable_compression:
|
if db.config.enable_compression:
|
||||||
echo "Yes!"
|
echo "Yes!"
|
||||||
```
|
```
|
||||||
|
|
||||||
You can alter configuration options when connecting by passing a `kuzuConfig`
|
You can alter configuration options when connecting by passing a `kuzuConfig`
|
||||||
|
|
@ -314,9 +314,9 @@ each `KuzuFlatTuple` -- essentially, each row that was returned in the set.
|
||||||
|
|
||||||
```nim
|
```nim
|
||||||
var res = conn.query """
|
var res = conn.query """
|
||||||
UNWIND [1,2,3] AS items
|
UNWIND [1,2,3] AS items
|
||||||
UNWIND ["thing"] AS thing
|
UNWIND ["thing"] AS thing
|
||||||
RETURN items, thing
|
RETURN items, thing
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# KuzuFlatTuple can be stringified just like the result set.
|
# KuzuFlatTuple can be stringified just like the result set.
|
||||||
|
|
@ -335,8 +335,8 @@ before calling.
|
||||||
|
|
||||||
```nim
|
```nim
|
||||||
var res = conn.query """
|
var res = conn.query """
|
||||||
UNWIND [1,2,3] AS items
|
UNWIND [1,2,3] AS items
|
||||||
RETURN items
|
RETURN items
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Get the first row.
|
# Get the first row.
|
||||||
|
|
@ -484,10 +484,10 @@ var res = conn.query """
|
||||||
"""
|
"""
|
||||||
|
|
||||||
res = conn.query """
|
res = conn.query """
|
||||||
MATCH path = (a:Person)-[r:Knows]->(b:Person)
|
MATCH path = (a:Person)-[r:Knows]->(b:Person)
|
||||||
WHERE r.since > 2000
|
WHERE r.since > 2000
|
||||||
RETURN r.since as Since, nodes(path) as People
|
RETURN r.since as Since, nodes(path) as People
|
||||||
ORDER BY r.since
|
ORDER BY r.since
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Who knows who since when?
|
# Who knows who since when?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue