logging - Android Room Database DAO debug log -
given room database dao this:
import android.arch.persistence.room.dao; import android.arch.persistence.room.query; import java.util.date; import java.util.list; @dao public interface mydao { @query("select * mytable") list<myitem> all(); @query("select * mytable date = :date , language = :language") myitem bydate(date date, string language); }
is there way have logger or added mydao
see statements being performed. helpful during development, because check if functions transformed correctly expected sql statement or not.
there not appear hooks @ dao level. there callbacks related database opens , upgrades, not arbitrary stuff.
you file feature request, though. agree useful. better okhttp-style generic interceptor framework.
Comments
Post a Comment