简体   繁体   English

在 ArangoDB 中查询多个数据库

[英]Queries over several Databases in ArangoDB

I wonder if there are options to use an AQL-Query over several Databases?我想知道是否有在多个数据库上使用 AQL 查询的选项?

Using pyArango I know you could write a script that iterates over all databases and executes the AQL, but natively, is that possible?使用 pyArango,我知道您可以编写一个遍历所有数据库并执行 AQL 的脚本,但在本地,这可能吗?

No, this is not possible.不,这是不可能的。 By design, each database is isolated from the others.根据设计,每个数据库都与其他数据库隔离。 The documentation states the following:文档指出以下内容:

Please note that commands, actions, scripts or AQL queries should never access multiple databases, even if they exist.请注意,命令、操作、脚本或 AQL 查询不应访问多个数据库,即使它们存在。 The only intended and supported way in ArangoDB is to use one database at a time for a command, an action, a script or a query. ArangoDB 中唯一预期和支持的方式是一次使用一个数据库来执行命令、操作、脚本或查询。 Operations started in one database must not switch the database later and continue operating in another.在一个数据库中启动的操作以后不得切换数据库并继续在另一个数据库中操作。

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

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