Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法打印准备好的语句,或者至少在使用 fmdb 时实现 sqlite3_trace 函数?尝试从 FMResultset 访问该语句不起作用。
一个sqlite3_trace函数
sqlite3_trace
void myTraceFunc(void *uData, const char *statement) { NSLog(@"%s", statement); }
可以用
FMDatabase *db = ...; [db open]; sqlite3_trace([db sqliteHandle], myTraceFunc, NULL);