undefined or ambiguous semantics around subsequent queries they are a hotspot for performance and memory problems. We'll never write an ORM. https://www.reddit.com/r/androiddev/comments/48yieg/ anyone_use_sqlbrite_andor_sqldelight/
public User call(Cursor cursor) { long id = cursor.getLong(0); String name = cursor.getString(1); return new User(id, name); } }).subscribe(new Action1<List<User>>() { @Override public void call(List<User> users) { // ϢʔβʔϦετͷදࣔͳͲ } }); SQLBrite
static final Factory<User> FACTORY = new Factory<>(AutoValue_User::new); public static final Func1<Cursor, User> MAPPER = cursor -> new Mapper<>(FACTORY).map(cursor); } Modelͷར༻