libpq++ のクラス

コネクションクラス: PgConnection

31) The connection class makes the actual connection to the database and is inherited by all of the access classes.

実際のデータベースへの接続はこのコネクションクラスが確立します. またすべてのアクセスクラスがこのクラスを継承しています.

データベースクラス: PgDatabase

33) The database class provides C++ objects that have a connection to a backend server. To create such an object one first needs the apropriate environment for the backend to access. The following constructors deal with making a connection to a backend server from a C++ program.

データベースクラスはバックエンドサーバへの接続を保持する C++ オブジェクトを提供します. このオブジェクトを生成するには, まずアクセスしようとするバックエンドに対して適切な環境を整える必要があります. C++ プログラムからバックエンドサーバへ接続する処理は, 後述するコンストラクタが扱います.