00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef PQXX_CONNECTION_H
00015 #define PQXX_CONNECTION_H
00016
00017 #include "pqxx/connectionitf.h"
00018
00019
00020
00021
00022
00023 namespace pqxx
00024 {
00025
00027
00040 class PQXX_LIBEXPORT Connection : public ConnectionItf
00041 {
00042 public:
00044 Connection();
00045
00047
00050 explicit Connection(const PGSTD::string &ConnInfo);
00051
00053
00057 explicit Connection(const char ConnInfo[]);
00058
00059 virtual ~Connection();
00060 };
00061
00062
00064
00072 class PQXX_LIBEXPORT LazyConnection : public ConnectionItf
00073 {
00074 public:
00076 LazyConnection() : ConnectionItf(0) {}
00077
00079
00082 explicit LazyConnection(const PGSTD::string &ConnInfo) :
00083 ConnectionItf(ConnInfo) {}
00084
00086
00090 explicit LazyConnection(const char ConnInfo[]) :
00091 ConnectionItf(ConnInfo) {}
00092
00093 virtual ~LazyConnection();
00094 };
00095
00096 }
00097
00098 #endif
00099