Comments (4)
Can you retry with the latest version? added test case for that 13045e5
from requery.
Tried in my code, but still experiencing issue...
Here is how I'm doing this... I'm not sure how your library works, but maybe issue is somehow related to difference between query params of selection and deletion
//Observing entities:
database.select(TrainingEntity.class)
.where(TrainingEntity.USER_ID.eq(serverSessionManager.getUserServerId()))
.orderBy(TrainingEntity.TRAINING_END_MILLIS.desc())
.limit(2).get()
.toSelfObservable()
.subscribe(trainingResult -> {
Timber.d("Getting training results");
...
}, throwable -> {
...
Timber.e(throwable, "Error getting trainings from DB");
});
//Deleting entity(DB_ID is primary key)
database.delete(TrainingEntity.class)
.where(TrainingEntity.DB_ID.eq(trainingDbId)).get()
.toSingle()
.subscribe(success -> {
...
Neither onError() nor onNext() is invoked when deleting:(
from requery.
I have once again check insert and it works just fine:
TrainingEntity training = (TrainingEntity) currentTrainingViewModel.getTraining();
...
return database.insert(training).doOnError(throwable -> {
Timber.e(throwable, "Error saving training!");
...
}).doOnSuccess(trainingEntity -> {
Timber.d("Save training success");
...
}).toObservable();
from requery.
Thanks for the example that helped to narrow down the problem
from requery.
Related Issues (20)
- Preload associations HOT 1
- Is "type" word a reserved? HOT 2
- java.lang.NoClassDefFoundError in SchemaUpdater.update HOT 1
- override beforeExecuteQuery or add default where
- it is possible do delete all content without delete the tables?
- SELECT from WITH clause
- Issue updating from v1.5.1 to v1.6.1 for Android
- New to requery, not sure how to get entities from database
- Is requery support only in java 8? HOT 1
- [Question] Query's string for debug
- Possible to create field of Map type?
- how to set an attribute when it is a key generated type?
- Build error with AS 4.2 running java 11 HOT 1
- connection leak when rollback (reloaded) HOT 1
- How to create Entity with a dynamic table name
- Migrate away from JCenter HOT 3
- Migrate from RxJava2 to RxJava3
- kapt build error HOT 2
- Is this project dead? HOT 3
- Version no longer upgraded HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from requery.