>If you want to have a connection only for use in this one trigger, >completely separate from everything else you're doing, and have both their >lifetimes managed together, then I think it would be cleaner to create a >class that _contains_ both the connection and the trigger:
The same thing I have done for now. But I wanted to put all my logic into one class, I thought that pqxx::trigger have such opportunity, I do not want to have two classes. The proposed idea was taken from Qt where it is a common technique for their classes. But anyway its your decision, I understand your point of view and... think again later... please... may be in future releases ;-) What about documentation? Will it be ok in 2.6.8? :-) Aleksey. _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
