Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Commit

Permalink
db.get() -> db.from()
Browse files Browse the repository at this point in the history
  • Loading branch information
bingzer committed Jun 9, 2016
1 parent 3da59aa commit ff47470
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ Cursor cursor = db.query("Customers", // table name
```
The purpose of `DbQuery` is to be able to write this query **fluently**
``` java
Cursor cursor = db.get("Customers")
.select("Id In (?,?,?)", customerId1, customerId2, customerId3) // whereClause
.columns("Id", "Address", "Age") // columns
.orderBy("Age") // orderBy 'Age'
.query();
Cursor cursor = db.from("Customers")
.select("Id In (?,?,?)", customerId1, customerId2, customerId3) // whereClause
.columns("Id", "Address", "Age") // columns
.orderBy("Age") // orderBy 'Age'
.query();
```

LICENSE
Expand Down

0 comments on commit ff47470

Please sign in to comment.