FSX / momoko

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

register_composite #99

Closed subssn21 closed 8 years ago

subssn21 commented 9 years ago

I wanted to register a composite using morocco, I tried several things and ended up temporarily creating a regular pscopg2 connection to register the composite globally.

The problem is that the CompositeCaster class queries the database to get the kids, I tried to follow the pattern you have established with the register store code, but I wasn't having much luck.

haizaar commented 9 years ago

Sorry, not replying earlier.

It seems you are on the right way - try doing it the same way as register_hstore. You need to implement it both for Connection and Pool classes.

If you can paste some code that you are having trouble with, I can help.

haizaar commented 8 years ago

Closing as inactive.