February 2018
Intermediate to advanced
510 pages
16h 10m
English
The handlerton (the short form of handler singleton) defines the storage engine. It contains method pointers to methods applied to the storage engine as a whole, instead of methods that work on a per-table basis. Examples of such methods include transaction methods which handle commits and rollbacks operations.
An example from the EXAMPLE storage engine is as follows:
handlerton example_hton= { "EXAMPLE", /* Name of the storage engine */ SHOW_OPTION_YES, /* It should be displayed in options or not */ "Example storage engine", /* Description of the storage engine */ DB_TYPE_EXAMPLE_DB, /* Type of storage engine it should refer to */ NULL, /* Initialize handlerton */ 0, /* slot available */ 0, /* define savepoint size. ...Read now
Unlock full access