Checkpoint.

- Add column names and types to KuzuQuery objects.
- Start sketching out type conversions.
- Add a "kind" method to KuzuValue, that returns its Kuzu type. (type is a
  reserved word)
- Fix some tests for post v0.8.2 behaviors.

FossilOrigin-Name: 64c0694e58507ce91f2e0eced106c9fef2a739665ddaa29f60b4ca9fe65678fe
This commit is contained in:
mahlon 2025-03-27 08:09:17 +00:00
parent ac222369f0
commit 421cb87e57
8 changed files with 82 additions and 23 deletions

View file

@ -18,8 +18,8 @@ for thing in @[ "Camel", "Lampshade", "Delicious Cake" ]:
q = p.execute( (thing: thing) )
assert typeOf( q ) is KuzuQueryResult
# This is failing until I can address
# https://github.com/kuzudb/kuzu/issues/5102
# Fixed post v0.8.2:
# https://github.com/kuzudb/kuzu/issues/5102
q = conn.query( "MATCH (d:Doop) RETURN d.thing" )
echo $q

View file

@ -17,7 +17,7 @@ q = conn.query( "MATCH (d:Doop) RETURN d.thing" )
assert q.num_tuples == 1
assert q.hasNext == true
discard $q # consume the tuple result
discard q.getNext # consume the tuple result
assert q.num_tuples == 1
assert q.hasNext == false