简体   繁体   中英

Is it possible to log all internal SQL queries in RushORM?

I'm using RushORM in my project on Android and I feel like it's very difficult to understand. I've been facing issues during my development which are somehow related to some internal SQL queries RushORM is generating. Unfortunately, RushORM doesn't print any SQL queries in log.

My question: Is it possible to force RushORM to log all SQL queries before sending them to the underlying SQL-engine ?

I experienced such problems too and found the undocumented solution: you should simply add

<meta-data android:name="Rush_log"
           android:value="true"/>

into your AndroidManifest.xml file to enable it.

You can find more details in a blog post here: http://android-dev.mobi/blog/2015/07/01/rushorm-how-to-enable-debug-logging/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM