Prepared Statement Scan Status Opcodes
Prepared Statement Scan Status Opcodes
#define SQLITE_SCANSTAT_NLOOP 0 #define SQLITE_SCANSTAT_NVISIT 1 #define SQLITE_SCANSTAT_EST 2 #define SQLITE_SCANSTAT_NAME 3 #define SQLITE_SCANSTAT_EXPLAIN 4 #define SQLITE_SCANSTAT_SELECTID 5
The following constants can be used for the T parameter to the sqlite3_stmt_scanstatus(S,X,T,V) interface. Each constant designates a different metric for sqlite3_stmt_scanstatus() to return.
When the value returned to V is a string, space to hold that string is managed by the prepared statement S and will be automatically freed when S is finalized.
- SQLITE_SCANSTAT_NLOOP
- The sqlite3_int64 variable pointed to by the T parameter will be set to the total number of times that the X-th loop has run.
- SQLITE_SCANSTAT_NVISIT
- The 登录查看完整内容