Skip to content

Instantly share code, notes, and snippets.

@adam-hurwitz
Last active August 24, 2017 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam-hurwitz/0f5f8578400f45499e893df80b8b218f to your computer and use it in GitHub Desktop.
Save adam-hurwitz/0f5f8578400f45499e893df80b8b218f to your computer and use it in GitHub Desktop.
Kotlin DBflow query one attribute
fun queryMemberStatus(id: String): Observable<List<Group>> {
return Observable.just(
SQLite.select(Group_Table.memberStatus)
.from(Group::class.java)
.where(Group_Table.id.`is`(id)).queryList())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment