}inttype = sqlite3_column_type(stmt, i);switch(type) {caseSQLITE_INTEGER:printf("%lld", sqlite3_column_int64(stmt, i));break;caseSQLITE_FLOAT:printf("%f", sqlite3_column_double(stmt, i));break;caseSQLITE_NULL:printf("nil");break;caseSQLITE_TEXT: fwrite(sqlite3_column_text(stmt, i...
// text returns the value of column i as a UTF-8 string. If copy is false, the// string will point to memory allocated by SQLite.functext(stmt *C.sqlite3_stmt, i C.int,copybool)string{ p := (*C.char)(unsafe.Pointer(C.sqlite3_column_text(stmt, i)))ifn := C.sqlite3_column...
SQLITE_API double sqlite3_column_double(sqlite3_stmt*, int iCol); SQLITE_API int sqlite3_column_int(sqlite3_stmt*, int iCol); SQLITE_API sqlite3_int64 sqlite3_column_int64(sqlite3_stmt*, int iCol); SQLITE_API const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol); SQLITE...
SQLITE_APIintsqlite3_exec(sqlite3*,/* An open database */constchar*sql,/* SQL to be evaluated */int(*callback)(void*,int,char**,char**),/* Callback function */void*,/* 1st argument to callback */char**errmsg/* Error msg written here */); 1. 2. 3. 4. 5. 6. 7. 这...