You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see any way to have blob result when using CreateFunction. I need a custom function that drops the last byte off a blob type. Example:
v.db.CreateFunction("POPS", true, 1,
func (c sqlite.Context, v...sqlite.Value) {
t:=v[0].Blob()
c.ResultBlob(t[:len(t)-1]) // no such thing (and what would be faster?)
}, nil, nil)
I need a similar one that reverses all the bytes in a blob. Is there some way to do that in the current code?
The text was updated successfully, but these errors were encountered:
I don't see any way to have blob result when using
CreateFunction
. I need a custom function that drops the last byte off a blob type. Example:I need a similar one that reverses all the bytes in a blob. Is there some way to do that in the current code?
The text was updated successfully, but these errors were encountered: