FSX / momoko

Wraps (asynchronous) Psycopg2 for Tornado.
http://momoko.61924.nl/
Other
363 stars 73 forks source link

AsyncPool new_cursor method #39

Closed slimaq007 closed 11 years ago

slimaq007 commented 11 years ago

I am crating AsyncPool instance with argument ioloop set from tornado.ioloop.IOLoop.instance() and I am damn sure it is ok.

The problem is, I don't know what to put into new_cursor( function ...). I do not know where the execute/batch? I am not sure, but those methods are inaccesible from AsyncPool instance.

I think they should be -> In my understanding AsyncPool is "all in one object".

FSX commented 11 years ago

I assume you're using 0.5. Here are some usage examples: http://momoko.61924.nl/examples.html#callback

You shouldn't use AsyncPool, but AsyncClient. It might look confusing, the new version (1.0.0) is going to be released soon and it will me much simpler. :)

slimaq007 commented 11 years ago

Hi FSX - I have another question. Don't think I am an ignorant but - when is the release date for momoko 1.0.0? I am really interested in this project :D

FSX commented 11 years ago

This month. Can't pick an exact date, there too much other work I have to do.