web-sql

What is the maximum size of a Web SQL DB in iOS (Safari) on the iPad? How about LocalStorage?

别等时光非礼了梦想. 提交于 2019-12-05 00:07:59
问题 What is the maximum data size when using HTML5's Web SQL to store data locally on the iPad? When you reach that, does it just prompt the user to increase it? Is that a simple yes/no permission request? If so, what's the hard limit (beyond which there isn't even the option of the user allowing it to expand)? Does LocalStorage work the same way? 回答1: The total limit for all WEB SQL Databases created by your site on Mobile Safari is 50Mb. Users are asked to confirm acceptance above 5Mb and you

SQL Insert Statement not Working in Javascript

时光怂恿深爱的人放手 提交于 2019-12-04 20:24:43
I'm trying to get my WebSQL database to popluate using a JSON array (Object is called myJSONObject , array is called costcodes ). The function runs on click, the database successfully creates, but the data is not inserted into the database. It doesn't even throw and error, it just doesn't do anything. My initial thought was that the data isn't escaped properly, but I don't know exactly where/how to escape it. So I'm stumped. localDB = null; function initDB() { if (localDB==null) { var shortName = 'Costcode'; var version = '1.0'; var displayName = 'Costcode'; var maxSize = 217802; // in bytes

difference between window.openDatabase() and window.sqlitePlugin.openDatabase() functions?

只愿长相守 提交于 2019-12-04 19:08:07
问题 Using Cordova version 3.x and Android version 2.x to 4.x. I am wondering: Is my understanding correct that all android devices by default have an sqlite program/interface for creating sqlite database? Do both the above database function calls create a sqlite database in the device? If the above answer is no , then what type of Database do both the above function calls create? If the answer is yes , then is window.sqlite.openDatabase() function wrapper around window.openDatabase() ? Are the

Cross browser HTML5 storage library [closed]

♀尐吖头ヾ 提交于 2019-12-04 05:59:19
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have one requirement where should be stored locally when internet is not available. It should handle it in cross browser compatible way. Now as I know there are variety of options to store the data locally (indexedDB, WebSQL, localStorage). All I really want is a unified API. I don't want to detect and write code for several storage engines. All I really care about is give a key, and give the data

Web SQL Storage Limitations in Chrome and Android?

别来无恙 提交于 2019-12-04 02:16:30
So I am writing a web app that needs to store ~40MB of offline data in a offline Web SQL database. It needs to work in Chrome (desktop), Safari (desktop and mobile) and android's browser. Now I know that Web SQL is supported in these browsers and I know since which versions but i need to know how much storage is allowed. Safari desktop supports 500MB of database storage. Safari mobile supports 50MB of database storage. However I have spent literally hours searching everywhere to find out what space chrome desktop supports and what the android browser supports but cannot find anything concrete.

Phonegap: WebSql or SqLite?

为君一笑 提交于 2019-12-04 00:08:45
I have been working with phonegap for little time, and i'm having some trouble with the concept of storage in it. So, the documentation states that there is this database that you can open, and it is a SQLite implementation."window.openDatabase returns a new Database object. This method will create a new SQL Lite Database and return a Database object. Use the Database Object to manipulate the data." http://docs.phonegap.com/en/2.2.0/cordova_storage_storage.md.html#Database I'm using it at my webApp right now: var myBuggedDb = window.openDatabase(shortName, version, displayName,maxSize); It

What is the maximum size of a Web SQL DB in iOS (Safari) on the iPad? How about LocalStorage?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 16:05:27
What is the maximum data size when using HTML5's Web SQL to store data locally on the iPad? When you reach that, does it just prompt the user to increase it? Is that a simple yes/no permission request? If so, what's the hard limit (beyond which there isn't even the option of the user allowing it to expand)? Does LocalStorage work the same way? Oliver Lloyd The total limit for all WEB SQL Databases created by your site on Mobile Safari is 50Mb. Users are asked to confirm acceptance above 5Mb and you cannot later increase the size of an existing database, you can only create a new, secondary, db

difference between window.openDatabase() and window.sqlitePlugin.openDatabase() functions?

£可爱£侵袭症+ 提交于 2019-12-03 12:39:10
Using Cordova version 3.x and Android version 2.x to 4.x. I am wondering: Is my understanding correct that all android devices by default have an sqlite program/interface for creating sqlite database? Do both the above database function calls create a sqlite database in the device? If the above answer is no , then what type of Database do both the above function calls create? If the answer is yes , then is window.sqlite.openDatabase() function wrapper around window.openDatabase() ? Are the databases created by the call persistent? That is, is the data available after closing and reopening the

Conceptual problems with IndexedDB (relationships etc.)

做~自己de王妃 提交于 2019-12-03 01:41:24
问题 I'm writing a thesis about offline abilities of web applications. My task is to show the possibilities of offline storage through a web application with a server-side relational database and Ajax/JSON traffic between client and server. My first implementation used an approach with localStorage, saving each Ajax response as value with the request URL as key. The app works just fine. In the next step however, I want to (i.e. the thesis requires) implement a more advanced version with a client

Conceptual problems with IndexedDB (relationships etc.)

核能气质少年 提交于 2019-12-02 15:34:25
I'm writing a thesis about offline abilities of web applications. My task is to show the possibilities of offline storage through a web application with a server-side relational database and Ajax/JSON traffic between client and server. My first implementation used an approach with localStorage, saving each Ajax response as value with the request URL as key. The app works just fine. In the next step however, I want to (i.e. the thesis requires) implement a more advanced version with a client-side database. Since the server maintains a relational database, Web SQL Database would have been the