Name
sqlite3_result_xxx() — Return an result from an SQL function
Definition
void sqlite3_result_blob( sqlite3_context* ctx, const void* val,
int bytes, mem_callback )
void sqlite3_result_double( sqlite3_context* ctx, double val );
void sqlite3_result_int( sqlite3_context* ctx, int val );
void sqlite3_result_int64( sqlite3_context* ctx, sqlite3_int64 val );
void sqlite3_result_null( sqlite3_context* ctx );
void sqlite3_result_text( sqlite3_context* ctx, const char* val,
int bytes, mem_callback )
void sqlite3_result_text16( sqlite3_context* ctx, const void* val,
int bytes, mem_callback )
void sqlite3_result_text16le( sqlite3_context* ctx, const void* val,
int bytes, mem_callback )
void sqlite3_result_text16be( sqlite3_context* ctx, const void* val,
int bytes, mem_callback )
void sqlite3_result_value( sqlite3_context* ctx, sqlite3_value* val );
void sqlite3_result_zeroblob( sqlite3_context* ctx, int bytes );
void mem_callback( void* ptr );-
ctx An SQL function context, provided by the SQLite library.
-
val Data value to return.
-
bytes The size of the data value, in bytes. In specific, text values are in bytes, not characters.
-
mem_callback A function pointer to a memory deallocation function. This function is used to free the memory buffer used to hold the value. If the buffer was allocated with
sqlite3_malloc(), a reference tosqlite3_free()can be passed directly.The special flags
SQLITE_STATICandSQLITE_TRANSIENTcan also be used.SQLITE_STATICindicates that the application will keep ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access