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);