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:
parent
ac222369f0
commit
421cb87e57
8 changed files with 82 additions and 23 deletions
|
|
@ -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).)" )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue