diff options
author | Nico Vertriest <nico.vertriest@qt.io> | 2016-10-27 16:11:01 +0200 |
---|---|---|
committer | Nico Vertriest <nico.vertriest@theqtcompany.com> | 2016-12-12 12:19:09 +0000 |
commit | 5ac14981b03c9c73c08194b1eb992107a096f774 (patch) | |
tree | 0ffe5223081472d6067135c4c9d435c1a2ad24fb /examples/quick/localstorage/doc/src | |
parent | cf4e4899d268b8a39578fc9713fa3c56ceecdf0b (diff) |
Example: Improve the localstorage example
- insert/update/delete instead of only insert
- database connection and sql handled in Database.js
Change-Id: I513b23061e569f4511dd166ed79898db7f628139
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'examples/quick/localstorage/doc/src')
-rw-r--r-- | examples/quick/localstorage/doc/src/localstorage.qdoc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/quick/localstorage/doc/src/localstorage.qdoc b/examples/quick/localstorage/doc/src/localstorage.qdoc index b52e0afd80..1bfba147e1 100644 --- a/examples/quick/localstorage/doc/src/localstorage.qdoc +++ b/examples/quick/localstorage/doc/src/localstorage.qdoc @@ -35,8 +35,13 @@ \include examples-run.qdocinc - \section1 Hello World + \section1 Activity Tracker - \e {Hello World} demonstrates creating a simple SQL table and doing - insert and select operations. + \e {Activity tracker} allows you to keep track of walks, hikes, or bike trips. + + All database transactions are handled in Database.js. The database is + checked at startup, and created if it does not exist. LocalStorage uses + SQLite, which is a self-contained, serverless, public-domain database. + Opening a connection to the database is handled at the beginning of each + function that manipulates or retrieves data. */ |