Commit 0a7b8a91 authored by lucas.parsy's avatar lucas.parsy Committed by Romain Courteaud

WebSQLStorage: add a new WebSQL storage

Squashed commit of the following:

commit 6fc5b5bd01796efd32905f7d62516ddbba7acef7
Author: Romain Courteaud <romain@nexedi.com>
Date:   Thu Dec 10 18:32:14 2015 +0100

    Cleanup rebase

commit 62e5e10d84caf9659dd32bfc71f03b7622aea5e2
Author: Lucas Parsy <lucas.parsy@nexedi.com>
Date:   Thu Dec 10 17:31:49 2015 +0100

    added scenario for webSQL storage

commit 3aae5518b87005a236dec2b3542c0cdcc9907029
Author: Lucas Parsy <lucas.parsy@nexedi.com>
Date:   Thu Dec 10 15:44:40 2015 +0100

    removed useless table in websqlstorage
    added indexes to increase queries speed.

commit 4072ea01a4bc7bd46ca611b7bf9dbf63d591c049
Author: Romain Courteaud <romain@nexedi.com>
Date:   Wed Dec 9 17:34:35 2015 +0100

    WebSQLStorage: do not sort results

commit 6d30b4bf011e6e8389a70ff185c9a739a7a2b196
Author: Romain Courteaud <romain@nexedi.com>
Date:   Wed Dec 9 17:25:23 2015 +0100

    WebSQLStorage: naming convention

commit 0928b105f756301eaaaf7ccae08c54c798a438fe
Author: Lucas Parsy <lucas.parsy@nexedi.com>
Date:   Wed Dec 9 11:09:01 2015 +0100

    various fixes in websqlstorage.

    added error callback on db.transaction.
    refactored sqlExec to do multiples queries in one transaction.
    refactored database initialisation.
    removed index functionality from websql.
    modified tests to follow above changes.

commit 00bd1cd2c5b19583bab0a74f7bcc86a59c97d3fb
Author: Lucas Parsy <lucas.parsy@nexedi.com>
Date:   Wed Dec 2 13:24:41 2015 +0100

    corrected bugs in websqlstorage breaking rsvp queues.
    added sinon spy tests in websqlstorage test file.

commit ccb2702df2fec1bd6eddca3cc2a8bbc9c8734749
Author: Lucas Parsy <lucas.parsy@nexedi.com>
Date:   Mon Nov 30 12:15:43 2015 +0100

    deleted test modifications done to Gruntfile, Makefile and tests.html files.

commit 344720f32f4ba7e9168cf68f43400bc56ea8c988
Author: Lucas Parsy <lucas.parsy@nexedi.com>
Date:   Mon Nov 30 11:41:04 2015 +0100

    added allDocs method in websqlStorage
    added tests for Websqlstorage and refactored some tests.

commit 2211a28605aedfb0683da5b3ea08f1cba47dc869
Author: Lucas Parsy <lucas.parsy@nexedi.com>
Date:   Mon Nov 23 16:29:36 2015 +0100

    first commit websql
    websql storage operational, lacks allDocs and query support
    half of the tests written.
    error handling to improve.
parent e6c460b4
......@@ -171,6 +171,7 @@ module.exports = function (grunt) {
'src/jio.storage/localstorage.js',
'src/jio.storage/zipstorage.js',
'src/jio.storage/cryptstorage.js',
'src/jio.storage/websqlstorage.js',
'src/jio.storage/dropboxstorage.js',
'src/jio.storage/davstorage.js',
'src/jio.storage/gdrivestorage.js',
......
......@@ -46,6 +46,7 @@ zip:
@cp src/jio.storage/gdrivestorage.js $(TMPDIR)/jio/storage/
@cp src/jio.storage/revisionstorage.js $(TMPDIR)/jio/storage/
@cp src/jio.storage/zipstorage.js $(TMPDIR)/jio/storage/
@cp src/jio.storage/websqlstorage.js $(TMPDIR)/jio/storage/
@cp src/jio.storage/replicaterevisionstorage.js $(TMPDIR)/jio/storage/
@cp src/jio.storage/s3storage.js $(TMPDIR)/jio/storage/
@cp src/jio.storage/splitstorage.js $(TMPDIR)/jio/storage/
......@@ -71,6 +72,7 @@ zip:
@$(UGLIFY) src/jio.storage/localstorage.js >$(TMPDIR)/jio/storage/localstorage.min.js 2>/dev/null
@$(UGLIFY) src/jio.storage/davstorage.js >$(TMPDIR)/jio/storage/davstorage.min.js 2>/dev/null
@$(UGLIFY) src/jio.storage/dropboxstorage.js >$(TMPDIR)/jio/storage/dropboxstorage.min.js 2>/dev/null
@$(UGLIFY) src/jio.storage/websqlstorage.js >$(TMPDIR)/jio/storage/websqlstorage.min.js 2>/dev/null
@$(UGLIFY) src/jio.storage/erp5storage.js >$(TMPDIR)/jio/storage/erp5storage.min.js 2>/dev/null
@$(UGLIFY) src/jio.storage/indexstorage.js >$(TMPDIR)/jio/storage/indexstorage.min.js 2>/dev/null
@$(UGLIFY) src/jio.storage/gidstorage.js >$(TMPDIR)/jio/storage/gidstorage.min.js 2>/dev/null
......
......@@ -50,6 +50,20 @@
}
});
///////////////////////////
// WebSQL storage
///////////////////////////
// return g.run({
// type: "query",
// sub_storage: {
// type: "uuid",
// sub_storage: {
// "type": "websql",
// "database": "test"
// }
// }
// });
///////////////////////////
// IndexedDB storage
///////////////////////////
......
This diff is collapsed.
This diff is collapsed.
......@@ -47,6 +47,7 @@
<script src="jio.storage/dropboxstorage.tests.js"></script>
<script src="jio.storage/zipstorage.tests.js"></script>
<script src="jio.storage/gdrivestorage.tests.js"></script>
<script src="jio.storage/websqlstorage.tests.js"></script>
<!--script src="../lib/jquery/jquery.min.js"></script>
<script src="../src/jio.storage/xwikistorage.js"></script>
<script src="jio.storage/xwikistorage.tests.js"></script-->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment