Class Innodb::System
In: lib/innodb/system.rb
Parent: Object

A class representing an entire InnoDB system, having a system tablespace and any number of attached single-table tablespaces.

Methods

Constants

SYSTEM_SPACE_ID = 0   The space ID of the system space, always 0.

Attributes

config  [R]  A hash of configuration options by configuration key.
data_dictionary  [R]  The Innodb::DataDictionary for this system.
orphans  [R]  Array of space names for which a space file was not found.
spaces  [R]  A hash of spaces by space ID.

Public Class methods

Public Instance methods

Add an already-constructed Innodb::Space object.

Add a space by table name, constructing an appropriate filename from the provided table name.

Return the clustered index given a table ID.

Return the clustered index name given a table name.

Iterate through all column names by table name.

Iterate through all field names in a given index by table name and index name.

Iterate through all index names by table name.

Iterate throught all orphaned spaces.

Iterate through all table names.

Return an Innodb::Index object given a table name and index name.

Return the index name given an index ID.

Return an Innodb::Space object for a given space ID, looking up and adding the single-table space if necessary.

Return an Innodb::Space object by table name.

A helper to get the system space.

Return an array of the table name and index name given an index ID.

Return the table name given a table ID.

[Validate]