(ctx *C.sqlite3_context, v reflect.Value)
| 401 | } |
| 402 | |
| 403 | func callbackRetText(ctx *C.sqlite3_context, v reflect.Value) error { |
| 404 | if v.Type().Kind() != reflect.String { |
| 405 | return fmt.Errorf("cannot convert %s to TEXT", v.Type()) |
| 406 | } |
| 407 | s := v.String() |
| 408 | if i64 && len(s) > math.MaxInt32 { |
| 409 | C.sqlite3_result_error_toobig(ctx) |
| 410 | return nil |
| 411 | } |
| 412 | cstr := C.CString(s) |
| 413 | C._sqlite3_result_text(ctx, cstr, C.int(len(s))) |
| 414 | return nil |
| 415 | } |
| 416 | |
| 417 | func callbackRetNil(ctx *C.sqlite3_context, v reflect.Value) error { |
| 418 | return nil |
nothing calls this directly
no outgoing calls
no test coverage detected