Manual:content テーブル

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Content table and the translation is 45% complete.

Other languages:
English • ‎日本語
Manual:コンテンツ MediaWiki のデータベース レイアウト content table/ja


MediaWiki バージョン: 1.31

content テーブルはコンテンツ オブジェクトを表現します。 Its primary purpose is to provide the necessary meta-data for loading and interpreting a serialized data blob to create a content object.

フィールド

content_id

ID of the content object

content_size

Nominal size of the content object (not necessarily of the serialized blob)

content_sha1

Nominal hash of the content object (not necessarily of the serialized blob)

content_model

content_models.model_id への参照。 Note the content format isn't specified; it should be assumed to be in the default format for the model unless auto-detected otherwise.

content_address

URL-like address of the content blob

スキーマの要約

MediaWiki バージョン: 1.31

DESCRIBE content;

+-----------------+----------------------+------+-----+---------+----------------+
| Field           | Type                 | Null | Key | Default | Extra          |
+-----------------+----------------------+------+-----+---------+----------------+
| content_id      | bigint(20) unsigned  | NO   | PRI | NULL    | auto_increment |
| content_size    | int(10) unsigned     | NO   |     | NULL    |                |
| content_sha1    | varbinary(32)        | NO   |     | NULL    |                |
| content_model   | smallint(5) unsigned | NO   |     | NULL    |                |
| content_address | varbinary(255)       | NO   |     | NULL    |                |
+-----------------+----------------------+------+-----+---------+----------------+