Closed vitaly-t closed 8 years ago
Generator coroutines accept any promise that is yielded. And as far as I know the whole point of pg-promise is to return promises, so in theory any version of pg-promise should work here.
All that version 2.6 appears to add is support for generator 'tasks' (db.task
) which are generators. I am not making use of this feature, and hence don't need to bump the pg-promise version.
It's up to you, of course. By the way, the library was just upped to 2.7.0 ;)
Latest 2.6 implements proper support of ES6 generators alongside promises.