C interface for storage plugin

Asked by Sylvain BERTRAND on 2009-11-13

Hi,
mysql has a C++ interface for storage plugin.

Could we expect a C interface storage plugin for MariaDB?

Question information

Language:
English Edit question
Status:
Answered
For:
MariaDB Edit question
Assignee:
No assignee Edit question
Last query:
2009-11-13
Last reply:
2010-08-24
Launchpad Janitor (janitor) said : #1

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

Michael Widenius (monty) said : #2

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 ?

Michael Widenius (monty) said : #3

An answer has been provided

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.