// ResultBlob sets the result of an SQL function. // (See sqlite3_result_blob, http://sqlite.org/c3ref/result_blob.html) func (c *Context) ResultBlob(b []byte) { if i64 && len(b) > math.MaxInt32 { C.sqlite3_result_error_toobig((*C.sqlite3_context)(c)) return } var p *byte if len(b) > 0 { p = &b[0] } C.my_result_blob((*C.sqlite3_context)(c), unsafe.Pointer(p), C.int(len(b))) }
// ResultErrorTooBig sets the result of an SQL function. // (See sqlite3_result_error_toobig, http://sqlite.org/c3ref/result_blob.html) func (c *FunctionContext) ResultErrorTooBig() { C.sqlite3_result_error_toobig(c.sc) }