Closed jay-jlm closed 6 years ago
splitResults does not support callback. reason is that with splitResults, your callback is called multiple times, each time with another bulk set of results. In promises, you can't call the then multiple times.
Thank you. So both the getConnection() and the query() methods will not work with promises or just the query one? Maybe make this limitation more explicit in the Readme page?
just the query. the split option is only gor query. I'll update the docs to be more clear
Thanks, I suggest put this info in the information in the method documentation, I guess there's where ppl will look if they have the same problem I did.
It was already documented in the js docs: https://github.com/sagiegurari/simple-oracledb/blob/master/docs/api.md#connectionquerysql-bindparams-options-callback--resultsetreadstream--promise
but i added to the example in the main readme as well.
Trying to convert some existing code to use promises instead of callbacks. Got the following error:
Code: