ArangoDB和用户定义的函数或存储过程 [英] ArangoDB and user-defined functions or stored procedures

查看:154
本文介绍了ArangoDB和用户定义的函数或存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ArangoDB文档(Foxx部分)说:

ArangoDB documentation (Foxx section) says:

由于Foxx直接在ArangoDB内部运行,因此您可以将所有数据库查询和必要的逻辑捆绑在一个地方.

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中实现与用户定义的函数或存储过程等效的功能之外,还有其他更原生"的方法吗?

Is there any additional way, 'more native', than using the 'Foxx framework' to implement something equivalent to user-defined functions or stored procedures in ArangoDB?

推荐答案

您可以使用 UDF的范围很明显,即只能通过参数处理放入其中的数据.因此,UDF比存储过程具有更小的作用域-您无法在其中运行子查询.

UDFs have a clear limited scope of just working with the data you put into them via parameters. So UDFs have a narower scope than stored procedures - you can't run sub-queries in them.

尽管Foxx可以提供比存储过程更多的功能(您可以通过RESTful HTTP直接与之交谈),但它代表了ArangoDB中的存储过程.

While Foxx can offer more functionality than stored procedures (you can directly talk to it via RESTful HTTP) its what represents stored procedures in ArangoDB.

这篇关于ArangoDB和用户定义的函数或存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆