You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,14 +13,15 @@ Before you using this helper, you must be install plugin [nativescript-community
13
13
14
14
## Instructions
15
15
1. Download file [sqlite_helper.js](https://github.com/dyazincahya/sqlite-helper-nativescript/blob/main/sqlite_helper.js) and save that file here : ```\YOUR_NATIVESCRIPT_PROJECT\app```
16
-
2. In the ```sqlite_helper.js``` file, find ```openOrCreate("your_database.db")``` code and change with your database name
17
-
3. Then put the ```your_database.db``` on ```\YOUR_NATIVESCRIPT_PROJECT\app```
18
-
4. In the ```sqlite_helper.js``` file, find ```showError``` variable then set it to ```true``` if you want to see all errors that occur during development on your sqlite
19
-
5. import file sql_helper.js on your module, like :
16
+
2. Create ```.db``` file using [SQLite Browser](https://sqlitebrowser.org)
17
+
3. And after that put the ```your_database.db``` in ```\YOUR_NATIVESCRIPT_PROJECT\app```
18
+
4. Then in the ```sqlite_helper.js``` file, find ```openOrCreate("your_database.db")``` code and change with your database name.
19
+
5. Still in the ```sqlite_helper.js``` file, find ```showError``` variable then set it to ```true``` if you want to see all errors that occur during development on your sqlite.
20
+
6. import file sql_helper.js on your module, like :
| SQL__select(...) | for get data from table | Array |
@@ -30,7 +31,7 @@ Before you using this helper, you must be install plugin [nativescript-community
30
31
| SQL__delete(...) | for delete data row from table | void |
31
32
| SQL__truncate(...) | for clear all data on the table | void |
32
33
| SQL__query(...) | for execute raw query like Create new Table or Etc | ? |
33
-
7. For details, you can look at the [sqlite_helper.js](https://github.com/dyazincahya/sqlite-helper-nativescript/blob/main/sqlite_helper.js) file directly
34
+
8. For details, you can look at the [sqlite_helper.js](https://github.com/dyazincahya/sqlite-helper-nativescript/blob/main/sqlite_helper.js) file directly
0 commit comments