Manual:Database.php/ja

説明
Database.php contains the  class that serves as a base for all database classes (MySQL, PostgreSQL, etc). It also contains the DatabaseType interface, which has a number of convenience functions.

関数
These are invoked using the database abstraction layer accessed via, e.g..

- 前回の書き込みクエリの影響を受けたレコードの件数を取得します. - 結果オブジェクト内のカーソルの位置を変更します. - 指定した結果オブジェクトから次のレコードを、オブジェクト形式で取得します. - 指定した結果オブジェクトから次のレコードを、連想配列形式で取得します. - フィールドが存在しない場合は false を返します. - 結果オブジェクト内のフィールド名を取得します. - A string describing the current software version, and possibly other details in a user-friendly way. - A string describing the current software version, like from mysql_get_server_info. - Returns a wikitext link to the DB's website, e.g., return "MySQL"; Should at least contain plain text, if for some reason your database has no website. - Get the type of the DBMS, as it appears in $wgDBtype. - Get information about an index into an object. - Get the inserted value of an auto-increment row. - 前回のエラー番号を取得します. - 前回のエラーの説明を取得します. - 結果オブジェクト内のフィールド数を取得します. - 結果オブジェクト内のレコード数を取得します. - データベースへの接続を開きます. - Wrapper for.

タイムスタンプ関数
- Convert a timestamp in one of the formats accepted by wfTimestamp to the format used for inserting into timestamp fields in this DBMS. The result is unquoted, and needs to be passed through addQuotes before it can be included in raw SQL. - Convert a timestamp in one of the formats accepted by wfTimestamp to the format used for inserting into timestamp fields in this DBMS. If NULL is input, it is passed through, allowing NULL values to be inserted into timestamp fields. The result is unquoted, and needs to be passed through addQuotes before it can be included in raw SQL.