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.
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
Web Sql Database in HTML 5
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
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