Closed linonetwo closed 8 years ago
Hi @linonetwo,
can I use results from makeFirstQuery() in makeSecondQuery() 's params?
Absolutely!
And what does done() used for? It doesn't receive a results parameter.
done
is just the callback for tx.commit
. tx.commit
(and tx.rollback
) callbacks don't receive any results. They're just a way for you to know whether the commit (or rollback) was successful. E.g. you might want to wait for this before responding to a request.
Hope this helps! Feel free to ask any more q's.
in transaction it reads:
can I use results from makeFirstQuery() in makeSecondQuery() 's params?
And what does done() used for? It doesn't receive a results parameter.