Code example for SQLiteQuery

Methods: toString

0
    private static final int DATABASE_VERSION = 1;
 
    private static final CursorFactory sCursorFactory = new CursorFactory() {
        @Override 
        public Cursor newCursor(SQLiteDatabase db, SQLiteCursorDriver masterQuery, String editTable, SQLiteQuery query) { 
            Log.d(TAG, query.toString()); 
            return new SQLiteCursor(db, masterQuery, editTable, query); 
        } 
    }; 
 
    interface Tables { 
        String FILES = "files";
    } 
 
    public FilesDatabase(Context context) {
        super(context, DATABASE_NAME, BuildConfig.DEBUG ? sCursorFactory : null, DATABASE_VERSION);
    } 
 
    @Override 
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("CREATE TABLE " + Tables.FILES + " ("