gpt4 book ai didi

stored-procedures - ArangoDB 和用户定义的函数或存储过程

转载 作者:行者123 更新时间:2023-12-01 00:38:01 25 4
gpt4 key购买 nike

ArangoDB 文档(Foxx 部分)说:

Because Foxx runs directly inside of ArangoDB it lets you bundle all the database queries and logic necessary to handle a request in one place.



有没有比使用“Foxx 框架”来实现与 ArangoDB 中用户定义的函数或存储过程等效的东西“更原生”的其他方法?

最佳答案

您可以使用 user defined functions可以在 AQL 内部使用。

UDF 有一个明确的有限范围,只能处理您通过参数放入其中的数据。因此 UDF 的范围比存储过程更窄 - 您不能在其中运行子查询。

虽然 Foxx 可以提供比存储过程更多的功能(您可以通过 RESTful HTTP 直接与它对话),但它代表了 ArangoDB 中的存储过程。

关于stored-procedures - ArangoDB 和用户定义的函数或存储过程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39110281/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com