PgConnection 35) makes a new connection to a backend database server. バックエンドサーバとの接続を新たに確立します.
PgConnection::PgConnection(const char *conninfo)36) Although typically called from one of the access classes, a connection to a backend server is possible by creating a PgConnection object. この関数は通常,アクセスクラスのいずれかから呼び出されますが, PgConnection オブジェクトを生成してもバックエンドサーバへの接続は可能です.
ConnectionBad 37) returns whether or not the connection to the backend server succeeded or failed. バックエンドへの接続が成功したかどうかを返します.
int PgConnection::ConnectionBad()38) Returns TRUE if the connection failed. 接続に失敗すると TRUE を返します.
39) Status returns the status of the connection to the backend server.
Status はバックエンドサーバとの接続状態を返します.
ConnStatusType PgConnection::Status()40) Returns either CONNECTION_OK or CONNECTION_BAD depending on the state of the connection. 接続状態により,CONNECTION_OK か CONNECTION_BAD のどちらかを返します.
41) PgDatabase makes a new connection to a backend database server.
バックエンドデータベースサーバへの接続を新たに確立します.
PgDatabase(const char *conninfo)42) After a PgDatabase has been created it should be checked to make sure the connection to the database succeded before sending queries to the object. This can easily be done by retrieving the current status of the PgDatabase object with the Status or ConnectionBad methods. PgDatabase オブジェクトを生成したら,まずオブジェクトに問い合わせを送る前に, 接続が成功したか確認しておくべきでしょう. これは PgDatabase オブジェクトから現在の状態を Status メソッド,あるいは ConnectionBad メソッドで読み込めば簡単にできます.
DBName 43) Returns the name of the current database. 現在のデータベース名を返します.
const char *PgConnection::DBName()
Notifies 44) Returns the next notification from a list of unhandled notification messages received from the backend. バックエンドより受信した通知メッセージのリストの中から, 未処理のものを順に返します.
PGnotify* PgConnection::Notifies()45) See PQnotifies() for details. 詳細は PQnotifies() を参照して下さい.