Multiple changes.
- Minor README updates. - Create LICENSE and History files. - Use 'func' instead of 'proc' where applicable. - Add some destructor debug. - Rename primary exceptions to 'X-error'. - Bind to proper object types in prepared statement parameters. - Retain the found 'type' in the KuzuValue object. FossilOrigin-Name: db59c0b901b1715170e0d269fc2bf00477ac48af4d10a747eb5a749adbf6268e
This commit is contained in:
parent
421cb87e57
commit
db85c36d70
22 changed files with 284 additions and 162 deletions
21
tests/values/t_can_return_a_type.nim
Normal file
21
tests/values/t_can_return_a_type.nim
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# vim: set et sta sw=4 ts=4 :
|
||||
|
||||
import kuzu
|
||||
|
||||
let db = newKuzuDatabase()
|
||||
let conn = db.connect
|
||||
|
||||
var q = conn.query( "CREATE NODE TABLE Doop ( id SERIAL, thing STRING, PRIMARY KEY(id) )" )
|
||||
|
||||
q = conn.query( "CREATE (d:Doop {thing: 'okay!'})" )
|
||||
q = conn.query( "MATCH (d:Doop) RETURN d.id, d.thing, d" )
|
||||
|
||||
var row = q.getNext
|
||||
var id = row[0]
|
||||
var thing = row[1]
|
||||
var node = row[2]
|
||||
|
||||
assert id.kind == KUZU_INT64
|
||||
assert thing.kind == KUZU_STRING
|
||||
assert node.kind == KUZU_NODE
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue