Please enable JavaScript to view this site.

CMDebug / TCC-RT Help v. 28

@UNQKVBA[[u,]filename,"key",bhandle[,length]] : Append a binary blob to the value of an existing UnQlite key/value pair.

 

uOptional flag that the key and value are Unicode (UTF16)
filenameDatabase opened with @UNQOPEN
keyKey to update
bhandleBinary handle returned by @BALLOC
lengthOptional length (in bytes) to write (if -1 or nor specified, write the entire buffer)

 

Returns 0 if successful, or the error text if not.

 

See also: @UNQOPEN, @UNQCLOSE, @UNQKVB.

 

Example:

 

echo %@unqopen[rwc,test.db]

set handle=%@balloc[4096]

rem write something to the binary buffer

echo %@unqkvba[test.db,"bbb",%handle,-1]

echo %@unqclose[test.db]