diff options
Diffstat (limited to 'src/interfaces/libpq++/pgdatabase.h')
| -rw-r--r-- | src/interfaces/libpq++/pgdatabase.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/interfaces/libpq++/pgdatabase.h b/src/interfaces/libpq++/pgdatabase.h index e0fd9f9268..37e019a880 100644 --- a/src/interfaces/libpq++/pgdatabase.h +++ b/src/interfaces/libpq++/pgdatabase.h @@ -14,7 +14,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * - * $Id: pgdatabase.h,v 1.7 2000/03/30 05:30:42 tgl Exp $ + * $Id: pgdatabase.h,v 1.8 2000/04/22 22:39:15 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -22,8 +22,9 @@ #ifndef PGDATABASE_H #define PGDATABASE_H +#ifndef PGCONNECTION_H #include "pgconnection.h" - +#endif // **************************************************************** // @@ -35,8 +36,10 @@ // results are being received. class PgDatabase : public PgConnection { public: - PgDatabase(const char* conninfo) : PgConnection(conninfo) {} // use reasonable defaults - ~PgDatabase() {} ; // close connection and clean up + // connect to the database with conninfo + PgDatabase(const char* conninfo) : PgConnection(conninfo) {} + + ~PgDatabase() {} // close connection and clean up // query result access int Tuples(); @@ -67,6 +70,12 @@ public: protected: PgDatabase() : PgConnection() {} // Do not connect + +private: +// We don't support copying of PgDatabase objects, +// so make copy constructor and assignment op private. + PgDatabase(const PgDatabase&); + PgDatabase& operator= (const PgDatabase&); }; #endif // PGDATABASE_H |
