A code stub generator for MySQL and Drizzle plugins

Hartmut Holzgraefe (...???...)

Writing a plugin from scratch requires to deal with

  • setting up its plug.in build file
  • writing a lot of global registration code
  • writing a lot of additional repetitive registration code for things like configuration or status variables, functions, …
  • setting up tests

The code generator framework presented takes care of most of the above by using XML as sort of a domain specific language to describe the infrastructure aspects of a plugin with the options to either embed actual functionality C/C++ code into the XML specification files right away or to extend the generated template code manually later.

A simple daemon plugin for example that just prints extra startup and shutdown messages could then look as easy as below and would be ready for testing within only a few minutes:

<?xml version=“1.0”?>

Hartmut Holzgraefe hartmut@mysql.com GPL 0.0.1 2004-05-25 beta First working release minimal daemon plugin printf(“plugin initialized”); printf(“plugin destroyed”);

Hartmut Holzgraefe

...???...

PHP contributer since 1999
MySQL user since 2000
MySQL Support Engineer 2004-2010

  • EnterpriseDB
  • Amazon Web Services
  • Clustrix
  • Continuent
  • Facebook
  • HTI Consultoria e Tecnologia
  • Monty Program
  • Percona
  • Rackspace Hosting
  • Schooner Information Technology
  • SkySQL
  • Xeround

Sponsorship Opportunities

For information on exhibition and sponsorship opportunities at the conference, contact Yvonne Romaine at yromaine@oreilly.com

Media Partners Opportunities

For media partnerships, contact mediapartners@ oreilly.com

Press & Media

For media-related inquiries, contact Maureen Jennings at maureen@oreilly.com

O'Reilly MySQL Conference Bulletin

To stay abreast of conference news and to receive email notification when registration opens, please sign up for the O'Reilly MySQL Conference Bulletin (login required).

Contact Us

View a complete list of O'Reilly MySQL Conference Contacts