Your SlideShare is downloading. ×
0
Web Sql Database in HTML 5
Web Sql Database in HTML 5
Web Sql Database in HTML 5
Web Sql Database in HTML 5
Web Sql Database in HTML 5
Web Sql Database in HTML 5
Web Sql Database in HTML 5
Web Sql Database in HTML 5
Web Sql Database in HTML 5
Web Sql Database in HTML 5
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Web Sql Database in HTML 5

323

Published on

Web SQL database is one of the technique for saving local data at client end in HTML 5. Along with Windows, Web SQL database is widely used in Andriod and Mac OX devices.

Web SQL database is one of the technique for saving local data at client end in HTML 5. Along with Windows, Web SQL database is widely used in Andriod and Mac OX devices.

Published in: Software, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
323
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. (webSQL technique for local database) Presenter: Pankaj Singh Bhandari, Mindfire Solutions Date: 03 / Apr / 2014
  • 2. Presenter: Pankaj Singh Bhandari, Mindfire Solutions AgendaAgenda 1. SQL Lite1. SQL Lite 2. Web SQL Database2. Web SQL Database 3. Synchronization.3. Synchronization. 4. Demo Application4. Demo Application
  • 3. Relational database management system contained in a C programming library Presenter: Pankaj Singh Bhandari, Mindfire Solutions SQLite is not a separate process that is accessed from the client application, but an integral part of it SQLite is ACID-compliant and implements most of the SQL standard.
  • 4. Presenter: Pankaj Singh Bhandari, Mindfire Solutions The Web SQL Database API isn't actually part of the HTML5 specification but it is a separate specification which introduces a set of APIs to manipulate client-side databases using SQL. Core Methods In Web SQL: openDatabase(): transaction(): executeSQL():
  • 5. openDatabase() This method creates the database object either using existing database or creating new one. var db = openDatabase('mydb', '1.0', 'Test DB', 2 * 1024 * 1024); # Database name # Version number # Text description # Size of database # Creation callback The 4th and 5th argument, creation callback will be called if the database is being created Presenter: Pankaj Singh Bhandari, Mindfire Solutions
  • 6. Transaction() & executeSQL() Presenter: Pankaj Singh Bhandari, Mindfire Solutions db.transaction(function (tx) { tx.executeSql(some query 1); tx.executeSql(some query 2); tx.executeSql(some query 3); });
  • 7. Synchronization. Basically process of updating local copy of data with server and vice versa No predefined API for Synchronization. navigator.onLine Generally use services and pass data as JSON or XML and do server side operations. Presenter: Pankaj Singh Bhandari, Mindfire Solutions
  • 8. Question and Answer Presenter: Pankaj Singh Bhandari, Mindfire Solutions
  • 9. What Next :What Next : Experiment.Experiment. Dig More.Dig More. Learn and Grow.Learn and Grow.
  • 10. www.mindfiresolutions.com https://www.facebook.com/MindfireSolutions http://www.linkedin.com/company/mindfire-solutions http://twitter.com/mindfires

×