Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to assign a Model to an IndexedDB? #126

Closed
marakante opened this issue May 28, 2015 · 1 comment
Closed

How to assign a Model to an IndexedDB? #126

marakante opened this issue May 28, 2015 · 1 comment

Comments

@marakante
Copy link

How can I use a Model (dmodel/Model) in an IndexedDB (dstore/db/IndexedDB, dstore version 1.1)?

Using a Memory store it works fine. But I don't know "where" or "how" to put the Model in an IndexedDB.

with:

    var myConfig = {...};
    var MyModel = declare(Model, { schema: {...} });
    var db = new IndexedDB({dbConfig: myConfig, storeName: 'store1', Model: MyModel})

then In Firebug I can see the constructor Model is assigned to db, but data retrieved from the store are not decorated anyway.

Thanks,
Martin

(I tried this on the dojo-mailing list already. But I can't see my posting there)

@kfranqueiro
Copy link
Contributor

FYI, your ML post did come through: http:https://mail.dojotoolkit.org/pipermail/dojo-interest/2015-May/084372.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants