Skip to content

Commit 664f7bd

Browse files
committed
Fixed some typos and layout in readme.
1 parent 14981d3 commit 664f7bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RxCupboard brings the excellent Android [Cupboard](https://bitbucket.org/littler
44

55
A sample project is included which shows how RxCupboard gracefully fits in an all-reactive Android app. The [.apk is available]() as direct download. Import the library from Maven Central using Gradle:
66
```groovy
7-
compile 'nl.2312:rxcupboard:0.5'
7+
compile 'nl.2312:rxcupboard:0.7'
88
```
99

1010
Usage with database
@@ -18,7 +18,7 @@ RxDatabase rxDatabase = RxCupboard.with(cupboard, db);
1818
Querying your Cupboard-connected database results in a stream of the desired items.
1919

2020
```java
21-
rxDatabase.query(Cheese.class, "agedMonths >= ", 12).subscribe(new Action1<Cheese>() {
21+
rxDatabase.query(Cheese.class, "agedMonths >= ?", 12).subscribe(new Action1<Cheese>() {
2222
@Override public void call(Cheese cheese) {
2323
// Do something with cheese...
2424
}
@@ -33,17 +33,19 @@ rxDatabase.query(Cheese.class).take(5).subscribe(new Action1<Cheese>() {
3333
// Do something with cheese...
3434
}
3535
});
36+
```
3637

3738
For more complex queries, use `buildQuery(Class<?>)` to use Cupboard's query builder and then call `query(DatabaseCompartment.QueryBuilder<T>)`:
3839

40+
```java
3941
rxDatabase.query(rxDatabase.buildQuery(Cheese.class).withSelection("agedMonths >= 12").orderBy("name")).toList().subscribe(new Action1<Cheese>() {
4042
@Override public void call(List<Cheese> cheeses) {
4143
// Do something with this ordered list of aged cheeses...
4244
}
4345
});
4446
```
4547

46-
Storing and removing items in the databse is as easy as usually with Cupboard. RxCupboard support the direct operations and has helper action implementations to use in streams.
48+
Storing and removing items in the databse is as easy as usually with Cupboard. RxCupboard supports these direct operations and has helper action implementations to use in streams.
4749

4850
```java
4951
Cheese saintMaure = new Cheese("Saint-Maure", 1, "Goat milk");

0 commit comments

Comments
 (0)