質問

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)
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top