@UNQKVBA[[u,]filename,"key",bhandle[,length]] : Append a binary blob to the value of an existing UnQlite key/value pair.
u | Optional flag that the key and value are Unicode (UTF16) |
filename | Database opened with @UNQOPEN |
key | Key to update |
bhandle | Binary handle returned by @BALLOC |
length | Optional 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]