-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello all,
In an attempt to learn libpqxx, I want to write a simple client-server application. When a client initially connects to the server, I want to generate a session id, which is transferred back to the client. All the subsequent client requests include this session id. To timeout unused sessions, each session row contains a last_access time stamp which should be updated each time the client performs an access: UPDATE sessions WHERE id='?' SET last_access=CURRENT_TIMESTAMP Let's say I want to use transactors -- how would I go about setting the id parameter for the prepared statement? Is there an index over the text-programs in the libpqxx repository? I'm guessing there's an example which shows how it should be done, but there are so many examples, and browsing is pretty slow.. - -- Kind regards, Jan Danielsson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (NetBSD) iD8DBQFGU1AruPlHKFfKXTYRChrWAJ0UZt2NGY3tNq8Bo0o2kpw/l/VJbwCfS/1J IWhBfj3wcB5f2+1cbaadkBY= =FS2Q -----END PGP SIGNATURE----- _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
