[Info-vax] Pascal & MySQL

Arne Vajhøj arne at vajhoej.dk
Fri Dec 21 19:10:24 EST 2018


On 12/21/2018 4:18 PM, Simon Clubley wrote:
> On 2018-12-21, Arne Vajhøj <arne at vajhoej.dk> wrote:
>> I have started creating a Pascal wrapper for MySQL C API.
> 
> I wonder if a better approach might be to use an interface generator
> so the binding only has to be written once.

Yes, but I don't know how relevant it is in the context.

MySQL provides a .H file.

I created two PEN's:
* one with the declarations matching the .H file
* one with a translation from Pascal constructs to C constructs

I suspect Oracle's interest in doing a generic interface definition
instead of the .H file is close to zero.

MySQL has other API's from Oracle or from third parties for most
major languages (JVM, CLR, C++, PHP, Python, Delphi etc.).

And even if one was provided the I suspect that it could only generate
the first source not the second source.

Arne



More information about the Info-vax mailing list