forked from vscarpenter/webSqlApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mySyncData.js
32 lines (31 loc) · 1.01 KB
/
mySyncData.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var SYNCDATA = {
url: 'http://www.affairesup.com/webSqlApp',// Set your server URL here ______
database: 'AddressBook', // webSQL database object (line 237 of indext.html)
tableToSync: [{
tableName: 'Unites',
idName: 'uniteId'
}, {
tableName: 'FiltreParam'
}, {
tableName: 'UserParam'
}, {
tableName: 'Contacts'
}],
sync_info: {//Example of user info
userEmail: '[email protected]',//the user mail is not always here
device_uuid: 'UNIQUE_DEVICE_ID_287CHBE873JB',//if no user mail, rely on the UUID
lastSyncDate: '0',
device_version: '5.1',
device_name: 'test navigator',
userAgent: navigator.userAgent,
//app data
appName: 'webSqlApp',
webSqlApp_version: '0.7',
lng: 'fr'
},
_nullDataHandler: function(){
},
_errorHandler: function(transaction, error){
console.error('Error : ' + error.message + ' (Code ' + error.code + ') Transaction.name = ' + transaction.name);
}
};