문제

queryRaw returns a normal list! But, this isn't good for many records and I need lazy list.

So, How can get a lazy list from queryRaw?

도움이 되었습니까?

해결책

I just added a new method called queryRawCreate, which returns a Query object. Using the query, you can obtain a LazyList now. It's pushed to GitHub. You will need to use the source version until the next release.

Relevant change: https://github.com/greenrobot/greenDAO/commit/16705725231219907c1c0b42f3ba653833de7230

다른 팁

Depending on your specific needs, it might work out using a standard QueryBuilder. Check out WhereCondition.StringCondition. Using this you can pass any SQL fragments for the WHERE clause to the query builder.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top