caminte icon indicating copy to clipboard operation
caminte copied to clipboard

Promise fails when database not ready

Open hfwittmann opened this issue 8 years ago • 3 comments

Thanks for the excellent package.

I have had some trouble getting the promise-implementation to work, though.

Here's what I'found: Basically the promise style functions work, so long as the database connection is already active. The callback function work even then, and wait till the connection is open.

To demonstrate this I have prepared three files:

test_callback_success.js test_promise_fail.js test_promise_success.js

Maybe this helps others.. (or could go into the documentation)

testing-caminte.zip

hfwittmann avatar May 19 '17 08:05 hfwittmann

Good to know, so this project is still alive?

angelo-hub avatar May 19 '17 15:05 angelo-hub

I cant really comment. I only recently became aware of caminte. I have also created a simple pull request but received no response yet. The question is : what are the alternatives? https://github.com/1602/jugglingdb has not had a commit since mid 2016. Loopback/strongloop is being taken over by IBM, and everything seems to be in a state of flux. Any suggestions?

hfwittmann avatar May 22 '17 07:05 hfwittmann

waterline looks good! ... http://waterlinejs.org/

hfwittmann avatar May 22 '17 07:05 hfwittmann