Comments - Coding in MariaDB

7 years, 12 months ago Federico Razzoli

-What is the language used for coding in MariaDB?

If you mean the server, it is written in C/C++.

UDFs must be written in C or a compatible language. Here you can see an example in Go: http://databaseblog.myname.nl/2015/10/a-mysql-udf-written-in-go.html

Stored procedures, functions and triggers must be written in procedural SQL.

-As the Oracle package doesn't exist, how MariaDB structure its code ?

Stored procedures are stored in a database, you can see the database as a namespace. There is no package.

-Is there a plugin which can call a Java proc in MariaDB , other than the UDF function (as MariaDB cannot call directly a java proc)?

No, currently there is no way to write a procedure in an external language. A community member is working on that, but I can't say if MariaDB is interested in this contribution, or when they will consider it.

 
7 years, 12 months ago Dba Btissam

Hi,

Thanks for your feedback.

By ".. how MariaDB structure its code ?" I mean, if I develop for instance a sales module, to organize the code,I need to gather the stored procedures,functions.. in a same container which will be linked to the sales subjects (as package in Oracle) ,so for maintenance it's easier than having separate procedures .. is there a way to accomplish this in MariaDb?

Thanks

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.