The class QueryBuilder has a static flag for this:
/** Set to true to debug the SQL. */
public static boolean LOG_SQL;
So just set *QueryBuilder.LOG_SQL = true*, and you should get what you want.
質問
Is there any way to make greendao spit queries that're being carried out into Logcat? I just want to reassure everything's working fine and it would be a good feature to have while getting accustomed to the system.
解決
The class QueryBuilder has a static flag for this:
/** Set to true to debug the SQL. */
public static boolean LOG_SQL;
So just set *QueryBuilder.LOG_SQL = true*, and you should get what you want.
他のヒント
dao.queryBuilder().LOG_VALUES=true; (For values)
dao.queryBuilder().LOG_SQL=true; (For query)