database plugin source code example?

I need to write a database plugin for a custom database server.
Is there some c/c++ source code around that might help me get started?

The mysql plugin source is included in the installation.

If you need help, you could hire me to help.

If you are using the API you will need a database license