Comments (5)
Hi,
thanks for reporting! Submitting issues here on github is the best way to go, because everything is public, everybody is able to participate, and there's a history of events.
But first, thanks for your commitment, that's awesome!
I thought about removing indexing from IDBWrapper, because the new versioning API, which will eventually land in Chrome, too, will make creating indices lazily a bit troublesome – it might lead to developers losing control of the version number of their database.
But that decision is not set in stone, and I will look into this issue next week :)
from idbwrapper.
Hi,
Unfortunately, while IndexedDb is not supported on most browsers (especially mobile ones), I'll have to switch to WebSQL for now (well, the company I work for decided that. Why go for a technology that works for 2% of our users when another one will work for 99% of em...) :/ I'll try to keep up with IDB and give you all the necessary feedback, but I'm afraid you won't hear from me for some time... (Special message to all major browsers : C'mon already ! Get rid of WebSQL and switch to IDB !)
Well, for indexing, I thought about something : Why don't we do the createIndex stuff in the "constructor" of the IDBStore ? Like an option :
customers = new IDBStore({
dbName: 'appdb',
storeName: 'customer',
keyPath: 'customerid',
autoIncrement: true,
indexes: [
{indexName:'oneIndex', indexStuff:'sameIndex', { unique: true }},
{/*etc...*/}
]
onStoreReady: storeIsReady
});
What do you think ?
from idbwrapper.
Hi,
yeah, understandable that your company doesn't want to go for IndexedDB yet. Though WebSQL wouldn't have been my choice, I'd rather recommend going for localStorage.
Setting up indexes in the constructor will probably be the way to go, though I'd still love to have the possibility to lazily add them at any point. But, we'll see; first I gotta fix this :)
from idbwrapper.
I'm currently on a project where were migrating from WebSql to indexDB simply to support more browsers in the web app (including IE here at version 10.. .amazing I know, but at least Chrome Frame is an option). There is a good article here on migration from html5rocks. Also W3C has deprecated it since a few major players didn't want to implement WebSql W3C
Thanks for the wrapper though.
from idbwrapper.
Index creation now works. Please see README or the tutorial (http://jensarps.de/2012/11/13/working-with-idbwrapper-part-2/) for details.
from idbwrapper.
Related Issues (20)
- to add an ability to use deferred objects HOT 2
- does this work in yosemite safari? HOT 1
- Please detect IndexedDBShim if indexedDB is not defined.
- publish new version HOT 2
- support null values HOT 2
- Minified Version Broken HOT 3
- IE always asks to bump dbVersion again HOT 4
- Works over IndexedDB in Safari? HOT 2
- Doesn't work in IE 11 HOT 3
- Doesn't appear to work anymore HOT 3
- IndexedDBShim Support? HOT 8
- 'Object store couldn't be created' when opening two times the same page HOT 4
- Doesn't work in Safari (Private Window) and in iframe on iOS HOT 3
- IE11 chokes on binary keys HOT 1
- error handling if browser does not allow access to databases HOT 1
- Failed to execute 'transaction' on ' IDBDatabase': The database connection is closing HOT 18
- Hola
- qq re optimizing queries or partition object stores HOT 3
- Example doesn't work in Firefox HOT 1
- 'Self' is not defined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idbwrapper.