alexfu / SQLiteQueryBuilder

A library that provides a simple API for building SQLite query statements in Java.
MIT License
70 stars 21 forks source link

Parse results #32

Closed confile closed 9 years ago

confile commented 9 years ago

Is there also a lib for parsing results?

alexfu commented 9 years ago

@confile that feature is out of scope for this library. This library only handles creating SQL statements. It will never handle execution of the query and mapping the results to a POJO.

confile commented 9 years ago

@alexfu I know, but may be you use some other lib to parse results?

alexfu commented 9 years ago

@confile that completely depends on your application. For example, this library was built for use on the Android platform so my experience is only limited to that (cursors -> POJO). But since this is a plain Java library it can be used pretty much in any Java project so if you are using it with a JDBC driver, I can't recommend any libraries.

confile commented 9 years ago

I am using it only with SQLite on Android.

alexfu commented 9 years ago

@confile I personally map Cursor results to POJOs manually, but I am sure you can find libraries somewhere that does this.