David de Regt
c7bf3a76d0
Trapping the case where the user rejects the quota attempt at first launch and reject the provider open.
2016-05-05 17:19:02 -07:00
DAVID DEREGT
26ea72ba3d
WebSQL has a weird issue where if you reject the browser window for a size increase on Safari, it rejects the transaction after it's already resolved it, and drops all of the pending queries on the floor (never returns either a success or error case for them). As such, I added tracking for outstanding queries in the sqlitesqltransaction and detect the failure case inside the websqltransaction and force it to clean up all of its pending queries and reject them appropriately.
2016-05-05 17:16:32 -07:00
David de Regt
a07ddd91de
0.2.6: Fixing export interfaces
2016-05-03 16:39:02 -07:00
David de Regt
3a910ad070
0.2.5: Removing support for ReactNativeSqliteProvider as you should now use the CordovaNativeSqliteProvider with the react-native-sqlite-storage plugin, which shares a common interface with the cordova-native-sqlite plugin (intentionally). Removed mandatory androidLockWorkaround and androidDatabaseImplementation options and made them optional options you can pass in the open command.
2016-05-03 15:54:08 -07:00
David de Regt
893324cab6
0.2.4: Bump synctasks version to 0.2.1, updated package urls to proper Microsoft github
2016-04-14 15:17:24 -07:00
David de Regt
ffb8313bdb
0.2.3: Fixed issue with not handling very-long-batch-inserts in SqlTransactionBase that overflowed the SQLITE_MAX_VARIABLE_NUMBER limit. No apparent way to get the limit at runtime, so for now hardcoding to 999 (the SQLite default). Fixed bug in sqlproviderbase where it was handling the error variable wrong from the react-native-sqlite-storage plugin.
2016-04-11 15:49:22 -07:00
David de Regt
257400c0cc
Added simple tests to validate that remove works
2016-04-06 16:09:38 -07:00
David de Regt
809354cc90
0.2.2: ( #498804 ) Fixed bugs with sqlprovider when you tried to get multiple or put multiple with an empty list
2016-04-06 12:57:36 -07:00
David de Regt
b0d860a5f5
Bumping to 0.2.1 to fix a casing bug that somehow didn't get saved
2016-04-01 17:07:38 -07:00
David de Regt
1a8e7965e8
Bumped version to 0.2.0. Changed module encapsulation to have the basic NoSqlProvider file be what used to be NoSqlProviderInterfaces and separated out each individual provider into a sub-include. So now you can include the base library and individual providers like this:
...
import NoSqlProvider = require('nosqlprovider');
import { InMemoryProvider } from 'nosqlprovider/dist/InMemoryProvider';
2016-04-01 17:01:31 -07:00
David de Regt
46be6794be
Fixed upgrade path in SqlProviderBase -- wasn't properly handling upgrading indexes. Added a bunch more unit tests for adding/removing stores, adding/removing/changing indexes, etc. Removing usage of indexeddb-js since we have tests working in-browser now. No reason to work around that POS. Made the NodeSqlite3MemoryDbProvider just directly use sqlite3.
2016-04-01 16:10:20 -07:00
David de Regt
dc5aa12a53
Added support for testing indexeddb's fake-compound-key implementation on chrome, fixed a bug in the indexeddb fake-compound-key implementation in the upgrade path, and detect which browser you're testing on and run the right test providers for that platform. Fixing display of some leaks being falsely reported by edge.
2016-04-01 14:41:00 -07:00
David de Regt
310696e57e
Fixed a bunch of bugs around not properly trapping errors in several providers. Properly implemented the version-too-new case on all providers and unit tested it. Made IndexedDbProvider actually delete unused object stores on schema upgrade.
2016-04-01 13:55:26 -07:00
DAVID DEREGT
08b13f1786
Updated package.json to reflect necessary packages to run web tests and added npm commands to run tests and web tests. Fixed small bug in the indexeddbprovider upgrade path. Added simple first test for schema upgrades.
2016-04-01 10:09:37 -07:00
DAVID DEREGT
2cc5377c0a
Added support for building typescript outside of Visual Studio (npm run build), added webpack support for building a web-compatible unit tests package, added a test.html file for running unit tests inside a browser, added support for using actual websql and indexeddb in the unit tests, fixed bugs in the unit tests where it wasn't closing dbproviders between unit tests, causing indexeddb to crap out between runs on a real browser.
2016-03-31 18:37:32 -07:00
David de Regt
551b21c611
Bumping version number to make npm happy
2016-01-13 10:47:52 -08:00
David de Regt
cf9dbfe6dc
Fixing dep
2016-01-13 10:46:59 -08:00
berickson1
d24a767880
Add alternate typescript definitions syntax to package.json
...
tsd should be able to consume this
2016-01-13 10:37:14 -08:00
Brent Erickson
cff923051f
Fix a crash in CordovaNativeSqliteProder
...
If navigator.userAgent is not defined, open will throw an exception. This can happen in a React Native enviornment while using react-native-sqlite-storage module
2016-01-12 10:32:53 -08:00
Brent Erickson
717dc84999
Pass sqlite plugin in via constructor, not open call
2016-01-11 16:19:26 -08:00
berickson1
da1914bff1
Bump version for release
2016-01-11 14:05:54 -08:00
Brent Erickson
388457d97a
Add support for cordova SQLite plugin to use plugin outside of the global scope, passed in via argument
2016-01-11 14:01:41 -08:00
berickson1
a467efd533
Fix file casing mismatch in test scripts for NoSqlProvider
2016-01-11 13:23:16 -08:00
David de Regt
e0f03f36a8
Refactored out the interfaces from NoSqlProvider into NoSqlProviderInterfaces to avoid the circular dependency I stupidly introduced
2016-01-05 19:49:14 -08:00
David de Regt
4a65921490
Forced NodeSqlite3MemoryDbProvider to take a copy of the sqlite3 module to use, and same thing for the ReactNativeSqliteProvider. This fixes browserify issues with including all the modules for a project that doesn't need those providers' external module implementations.
2016-01-05 19:33:28 -08:00
David de Regt
d7eefd4693
Changing export pattern to have NoSqlProvider re-export all the providers
2016-01-05 18:23:32 -08:00
David de Regt
18350ac3ed
Initial commit of NoSQLProvider
2016-01-05 17:48:55 -08:00
David de Regt
bda07023db
Create README.md
2016-01-05 16:39:28 -08:00
David de Regt
c143c84a54
Updating LICENSE with LCA-approved language
2016-01-05 16:38:12 -08:00
David de Regt
879da591f9
Initial commit
2016-01-05 16:36:31 -08:00