coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

Remove not working in blackberry 10 device #127

Open pablofm opened 10 years ago

pablofm commented 10 years ago

Hi there,

I decided to use persistencejs in my project in blackberry. Its weird because developing in the ripple emulator everything works fine. However, when I deploy the app to the device everything is working well with exception of the remove methods.

Any Idea?

Pablo

pazifikwelle commented 10 years ago

Hey Pablo,

I can only add how I sucessfully use it on Android + iOS + Desktop.Chrome:

persistence.remove(oEntity);

mostly soon followed by persistence.flush(...snip...);

My setup: persistence.js with websql and syncer to mysql-php backend


if you are using websql I would try to talk to BlackBerry's WebSql directly and see whether their sqllite can delete records from a table (that should work).

in addition, I would turn on persistence.js SQL-debugging, so that you can manually execute and maybe get better debugging results.

Greets Stefan

(I have no BB devices here....)

2013/8/16 pablofm notifications@github.com

Hi there,

I decided to use persistencejs in my project in blackberry. Its weird because developing in the ripple emulator everything works fine. However, when I deploy the app to the device everything is working well with exception of the remove methods.

Any Idea?

Pablo

— Reply to this email directly or view it on GitHubhttps://github.com/zefhemel/persistencejs/issues/127 .


Stefan Hanke pazifikwelle@googlemail.com

skype: shanke24143

mobile: +491724264228


pablofm commented 10 years ago

I Want to apologize. The delete functions are working perfectly. The problem is with the asyncronism of the dialogs of blackberry. The world is asynchronous :P

pazifikwelle commented 10 years ago

Oh yes, async js is 'interesting' and can be powerfull as well as lexical scoping.

I had some tough weeks... :-) Am 16.08.2013 21:35 schrieb "pablofm" notifications@github.com:

I Want to apologize. The delete functions are working perfectly. The problem is with the asyncronism of the dialogs of blackberry. The world is asynchronous :P

— Reply to this email directly or view it on GitHubhttps://github.com/zefhemel/persistencejs/issues/127#issuecomment-22788714 .