简体   繁体   English

Azure Cosmos DB Gremlin 是否支持存储过程或自定义函数

[英]Does Azure Cosmos DB Gremlin supports stored procedures or custom functions

Does Azure Cosmos DB Gremlin supports stored procedures or custom functions? Azure Cosmos DB Gremlin 是否支持存储过程或自定义函数? Unfortunately I can not find any documentation on it.不幸的是,我找不到任何关于它的文档。 Apache Tinkerpop supports user defined steps. Apache Tinkerpop 支持用户定义的步骤。 Other graph databases (eg Orient DB) support custom functions as well其他图形数据库(例如 Orient DB)也支持自定义函数

Based on the docs , it seems to be implied that CosmosDB supports user defined functions and stored procedures only when using the Core (SQL) API.根据文档,它似乎是暗示CosmosDB支持用户使用核心(SQL)API仅当定义的功能和存储的过程。

However, I verified myself that you can create UDFs and SPs even with the Gremlin API.但是,我自己证实,即使使用 Gremlin API,您也可以创建 UDF 和 SP。 I created a new CosmosDB account with the Gremlin API and ran the commands found in this notebook (if you enable the Notebooks feature when creating the account, you will see all the sample notebooks in data explorer).我使用 Gremlin API 创建了一个新的 CosmosDB 帐户并运行了此笔记本中的命令(如果您在创建帐户时启用了笔记本功能,您将在数据资源管理器中看到所有示例笔记本)。 Here's what it looks like:这是它的样子:

GremlinAPI 存储过程

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

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