You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking into writing an adapter for IndexedDB. One of the technical hurdles is that IndexedDb has a setup process wherein the local database is mirated and indexed. I wanted to know if you guys had any opinions or ideas on how data-core could accommodate database configuration and migration. I figure migration would need to receive the complete set of models so it could query their structures, create the appropriate indices, etc.
The text was updated successfully, but these errors were encountered:
At the moment, I don't think this is a good fit for core. However, we have recently added a number of introspection facilities to models that should make a migration facility possible.
Most importantly:
varattributes=Ember.get(Person,'attributes');attributes.forEach(function(name,metadata){// metadata contains `type` and `key`// it will probably contain more in the future});varassociations=Ember.get(Person,'associations');associations.forEach(function(type,list){list.forEach(function(metadata){// metadata contains `name` and `kind`});});
We'd be happy to host a migration solution in the ember organization, and I'd be happy to help you with any further APIs you need or to review the code.
Please email me at wycats@gmail.com if you have something to look at (or if you have general questions about migrations) and open a new ticket if you need some other API from Ember.
I'm looking into writing an adapter for IndexedDB. One of the technical hurdles is that IndexedDb has a setup process wherein the local database is mirated and indexed. I wanted to know if you guys had any opinions or ideas on how data-core could accommodate database configuration and migration. I figure migration would need to receive the complete set of models so it could query their structures, create the appropriate indices, etc.
The text was updated successfully, but these errors were encountered: