Anyone looked at asynchronous database query API? I'm thinking about all the big_query, big_typed_query etc. but retuning a Promise.
Martin Nilsson (Coppermist) @ Pike (-) developers forum wrote:
Anyone looked at asynchronous database query API? I'm thinking about all the big_query, big_typed_query etc. but retuning a Promise.
Sql.Promise()
I've used it in applications. It works fine, I think. You want something different?
Martin Nilsson (Coppermist) @ Pike (-) developers forum wrote:
Anyone looked at asynchronous database query API? I'm thinking about all the big_query, big_typed_query etc. but retuning a Promise.
Sql.Promise()
I've used it in applications. It works fine, I think. You want something different?
Thanks. Yes, like that, but non-blocking :) Doesn't look like MySQL is using the mysql_*_nonblocking functions.
Martin Nilsson (Coppermist) @ Pike (-) developers forum wrote:
Sql.Promise()
Thanks. Yes, like that, but non-blocking :) Doesn't look like MySQL is using the mysql_*_nonblocking functions.
I see. With PostgreSQL (obviously ;-)) it *is* non-blocking. Soon (hopefully) I'll have a working CQL implementation modeled after the pgsql driver (so you can interface with Cassandra and ScyllaDB (cql network protocol v4)).
pike-devel@lists.lysator.liu.se