繁体   English   中英

如何在 MonetDB 中使用 JIT C/C++ UDF

[英]How do you use the JIT C/C++ UDF in MonetDB

I am new to MonetDB, and want to write an SQL query in C++ that includes a C++ function as shown in the link below, but I'm not sure how to actually do this.

https://www.monetdb.org/index.php/blog/JIT_C_C%252B%252B_UDFs_in_MonetDB

If I set up an ODBC connection can I send the function along with the SQL query via the ODBC connection or is there a different method that I need to implement to be able to do this. 抱歉,我很难理解 MonetDB 文档。

是的,整个CREATE FUNCTION...(...) LANGUAGE...只是一个普通的 SQL 查询。 您可以在 ODBC(或任何其他客户端驱动程序)中发送它,就像发送其他 SQL 查询一样。

但是,请注意 JIT C/C++ UDF 是一项实验性功能,并未积极维护。 为了更好地维护,请使用此存储库中的示例来了解如何使用您自己的 C/C++ 函数扩展 MonetDB: https://dev.monetdb.org/hg/MonetDB-extend 您可以使用hg clone https://dev.monetdb.org/hg/MonetDB-extend克隆它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM