Skip to content

Commit ac28243

Browse files
committed
Added directories info to the readme and bumped version
1 parent f810591 commit ac28243

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ sqlite.open("filename.sqlite", function (error, database) {
5353
});
5454
```
5555

56+
## Database Location
57+
58+
It will first look for the database filename you give in the Documents directory inside the app sandbox. If it doesn't find anything there it will look in the app bundle and try and copy it to the Documents directory. If it doesn't find the database in either places then it will create a new blank database in Documents directory.
59+
60+
In the future it should probably be made possible to open/create databases in the tmp and Libraries directories.
61+
5662
## Known Issues
5763

5864
- I'm using events on RCTDeviceEventEmitter to pass back rows from

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-sqlite",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "SQLite3 bindings for React Native",
55
"main": "sqlite3.ios.js",
66
"scripts": {

0 commit comments

Comments
 (0)