aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/connection.cxx
AgeCommit message (Collapse)AuthorFilesLines
2012-01-29Update copyright yearBoris Kolpackov1-1/+1
2012-01-29Remove author field from file headerBoris Kolpackov1-1/+0
Too much effort to maintain.
2011-12-01Detect and mark connection as failedBoris Kolpackov1-2/+2
2011-11-07Add support for SQL statement tracingBoris Kolpackov1-0/+8
2011-08-30Implement uniform handle management across all databasesBoris Kolpackov1-15/+3
Also use the auto_handle template instead of the raw handle in connection, statement, and result classes. This removes a lot of brittle "exception safety guarantee" code that we had in those classes.
2011-08-28Add support for creating connection from existing handleBoris Kolpackov1-7/+21
This will allow for custom connection establishment and configuration.
2011-08-24Add support for transaction multiplexingBoris Kolpackov1-3/+0
Also delay getting a connection until after we do all the sanity checks (e.g., that there is no active transaction). Otherwise we are running risk of getting blocked rather than throwing an exception.
2011-08-21Add odb::connection classBoris Kolpackov1-2/+44
This abstract class represents a connection to the database. One can use it to start a transaction or to execute a native statement out of a transaction. Before we had concrete connection classes in the database runtime libraries (e.g., odb::mysql::connection). Now these classes derive from odb::connection.
2011-07-25Suppress warningsBoris Kolpackov1-6/+6
2011-07-22Get rid of libpq-fe.h inclusion in public headersBoris Kolpackov1-0/+2
The problem with libpq-fe.h is that it is installed in unpredictable places on different platforms. As a result, a user that uses ODB with PostgreSQL (and who doesn't really know or care about libpq) is forced to make sure their application is able to find and include libpq-fe.h correctly. Luckily for us, we only use a handful of libpq pointers in public headers and the workaround is to forward declare them and use that instead of including libpq-fe.h (which is instead included in source files).
2011-07-14Forbid connection to database if server integer_datetimes is offConstantin Michael1-3/+5
2011-07-13Make process notification callback staticConstantin Michael1-5/+2
2011-07-13Get integer_datetimes server var on connection to serverConstantin Michael1-0/+8
2011-07-12Suppress server notification messagesConstantin Michael1-0/+10
2011-07-11Free prepared statement cache before closing connectionBoris Kolpackov1-0/+4
2011-05-27Add statement-cache and enable relevant functionality in connectionConstantin Michael1-44/+3
2011-05-11Add connection and connection factory implementationsConstantin Michael1-0/+87