Cursor Utils


Working with Android SQLite Cursors is less than ideal. Code can easily be duplicated throughout your codebase if you’re not careful to keep the translation of SQLite columns into Java objects. Iterating across the returned data from a Cursor is another area which can lead to code duplication. Sometimes you actually want a Cursor to be a List, yet other times a List to be a Cursor.

This library was designed to encapsulate the repeatable actions for Android Cursors and treat them as if they were closer to a Java object rather than a conglomerate of dicts/hashes.


Install/import with Gradle

Instructions for Gradle

Add the below to your build.gradle,

compile 'com.venmo.cursor:library:0.4'
Install/import with Maven

Instructions for Maven

Add the following in the pom.xml,

Facebook Twitter Google Reddit LinkedIn

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *