C interface for storage plugin

Asked by Sylvain BERTRAND

mysql has a C++ interface for storage plugin.

Could we expect a C interface storage plugin for MariaDB?

Question information

English Edit question
MariaDB Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Michael Widenius (monty) said :

The C++ interface for the store plugins is not likely to change a lot (there is a lot of storage engines that are depending on this one).

Another reason for this is that some of the elements you want to access in MySQL, like the TABLE, FIELD or THD objects are C++ objects and not easily accessible from C.

However it's very easy to use the C++ to create a wrapper for a storage engine in C. This is what it's done for most of the storage engines.

Why would you like to see a pure C API and how would it help you ?

Revision history for this message
Michael Widenius (monty) said :

An answer has been provided

Revision history for this message
Sylvain BERTRAND (sylvain-bertrand) said :

Pure C storage plugin: in order to avoid having to deal with C++ (it's a choice). Moreover, if that C interface is provided directly by MariaDB that would mean a kind of stable interface for C plugins.

Can you help with this problem?

Provide an answer of your own, or ask Sylvain BERTRAND for more information if necessary.

To post a message you must log in.