No side effects for toBlob.

FossilOrigin-Name: 70801bf0758efd8cd7f15c829809d598fa18ac5e3d29a310ce14c956969b53e6
This commit is contained in:
Mahlon E. Smith 2025-04-23 23:42:39 +00:00
parent e532c50e99
commit 30d60f2cd2

View file

@ -131,7 +131,7 @@ func toList*( value: KuzuValue ): seq[ KuzuValue ] =
const toSeq* = toList const toSeq* = toList
proc toBlob*( value: KuzuValue ): seq[ byte ] = func toBlob*( value: KuzuValue ): seq[ byte ] =
## Conversion from Kuzu type to Nim - returns a BLOB as a sequence of bytes. ## Conversion from Kuzu type to Nim - returns a BLOB as a sequence of bytes.
if value.kind != KUZU_BLOB: if value.kind != KUZU_BLOB:
raise newException( KuzuTypeError, &"Mismatched types: {value.kind} != blob" ) raise newException( KuzuTypeError, &"Mismatched types: {value.kind} != blob" )