Function Reference

_SQLite_FastEncode

Parameters

$vData

Data To be encoded (Binary only)

Return Value

Success:

an encoded binary string.

Failure:

an empty string and sets the @error flag to non-zero.

@error:

1 - Data is not a binary type

Remarks

The encoded string is already wrapped with single quotes.
For example Chr(0) & Chr(1) would look like X'0001'.
The encoded string can be decoded by Sqlite and stored in binary state as a BLOB.
For strings to be stored as TEXT, use _SQLite_Escape().
For numeric value to be stored as such, use simple concatenation.