Skip to content

Commit 6e3f9e1

Browse files
authored
Update README.md
1 parent 61511cc commit 6e3f9e1

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
11
# AsyncQuery
2+
[![Build Status](https://travis-ci.org/Madrapps/AsyncQuery.svg?branch=master)](https://travis-ci.org/Madrapps/AsyncQuery)
3+
[ ![Download](https://api.bintray.com/packages/madrapps/maven/com.github.madrapps%3Aasyncquery/images/download.svg) ](https://bintray.com/madrapps/maven/com.github.madrapps%3Aasyncquery/_latestVersion)
4+
25
Improved AsyncQueryHandler that handles BulkInsert operation
36

4-
Note: This is literally a copy paste of the `AsyncQueryHandler` in Android and then modified that to support Bulk Insert operation. All credits goes to the Android Open Source team for writing the original `AsyncQueryHandler`.
7+
**Note:** This is literally a copy paste of the `AsyncQueryHandler` in Android and then modified that to support Bulk Insert operation. All credits goes to the Android Open Source team for writing the original `AsyncQueryHandler`.
8+
9+
Download
10+
-----
11+
12+
```gradle
13+
repositories {
14+
jcenter() // or mavenCentral()
15+
}
16+
17+
dependencies {
18+
compile 'com.github.madrapps:asyncquery:1.0.0'
19+
}
20+
```
21+
22+
Usage
23+
-----
24+
You would use this the same way as you would use `AsyncQueryHandler` except you can now use `startBulkInsert()`
25+
26+
```java
27+
final DatabaseHandler handler = new DatabaseHandler(getContentResolver());
28+
final Uri uri = new Uri.Builder().scheme(SCHEME).authority(AUTHORITY).appendEncodedPath(ORGANIZATION).build();
29+
handler.startBulkInsert(1, null, uri, getContentValues());
30+
```
31+
32+
License
33+
-----
34+
35+
AsyncQuery by [Madrapps](http://madrapps.github.io/) is licensed under a [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0) by Android Open Source Platform.

0 commit comments

Comments
 (0)