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,13 +18,6 @@ proc `[]`*( tpl: KuzuFlatTuple, idx: int ): KuzuValue =
if kuzu_flat_tuple_get_value( addr tpl.handle, idx.uint64, addr result.handle ) == KuzuSuccess:
result.valid = true
#
# FIXME: type checks and conversions from supported kuzu
# types to supported Nim types.
#
# Currently the value can only be stringified via `$`.
#
else:
raise newException( KuzuIndexException,
&"Unable to fetch tuple value at idx {idx}. ({tpl.num_columns} column(s).)" )