Web Sql Database in HTML 5
Upcoming SlideShare
Loading in...5
×
 

Web Sql Database in HTML 5

on

  • 342 views

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.

Statistics

Views

Total Views
342
Views on SlideShare
339
Embed Views
3

Actions

Likes
0
Downloads
3
Comments
0

1 Embed 3

http://www.slideee.com 3

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Web Sql Database in HTML 5 Web Sql Database in HTML 5 Presentation Transcript

  • (webSQL technique for local database) Presenter: Pankaj Singh Bhandari, Mindfire Solutions Date: 03 / Apr / 2014
  • 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
  • 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.
  • 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():
  • 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
  • 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); });
  • 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
  • Question and Answer Presenter: Pankaj Singh Bhandari, Mindfire Solutions
  • What Next :What Next : Experiment.Experiment. Dig More.Dig More. Learn and Grow.Learn and Grow.
  • www.mindfiresolutions.com https://www.facebook.com/MindfireSolutions http://www.linkedin.com/company/mindfire-solutions http://twitter.com/mindfires