Web Sql Database in HTML 5

  • 223 views
Uploaded 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.

More in: Software , Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
223
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
4
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