简体   繁体   English

如何将 Orion Context Broker 与 SQL Server 连接

[英]How to connect Orion Context Broker with SQL Server

Is there any way to send the entities from Orion Context Broker to SQL Server by using docker compose file?有没有办法使用 docker compose 文件将实体从 Orion Context Broker 发送到 SQL Server?

Right now, Orion subscribes to the entities and Quantum Leap notifies the Crate DB when there is a change for those entities.现在,Orion 订阅实体,Quantum Leap 会在这些实体发生更改时通知 Crate DB。 However, Crate DB is not what I want and this is the reason: https://community.powerbi.com/t5/Desktop/Direct-Query-for-PostgreSQL/mp/776979/highlight/true#M374297但是,Crate DB 不是我想要的,这就是原因: https : //community.powerbi.com/t5/Desktop/Direct-Query-for-PostgreSQL/mp/776979/highlight/true#M374297

So basically my question is, if there is any way to replace the Crate DB with any of these supported ones: https://docs.microsoft.com/en-us/power-bi/desktop-directquery-data-sources .所以基本上我的问题是,是否有任何方法可以用以下任何受支持的数据库替换 Crate DB: https://docs.microsoft.com/en-us/power-bi/desktop-directquery-data-sources (I randomly chose the SQL Server but any other is fine) (我随机选择了 SQL Server,但其他都可以)

I don't know Quantum Leap or CrateDB but, basically, you could create a Context Consumer to receive notifications from Orion (a subscription would be created for that) so each notification is persisted in your target DB (in this case SQL Server).我不知道 Quantum Leap 或 CrateDB,但基本上,您可以创建一个上下文使用者来接收来自 Orion 的通知(将为此创建一个订阅),以便每个通知都保留在您的目标数据库中(在本例中为 SQL Server)。

In fact, maybe you can take advantage of Cygnus instead of developing that piece of software from scratch.事实上,也许您可​​以利用Cygnus而不是从头开始开发该软件。 Cygnus is extensible and there is documentation about how to extend it , so new sinks can be developed. Cygnus 是可扩展的,并且有关于如何扩展它的文档,因此可以开发新的接收器。 You need to develop the sink for SQL Server.您需要为 SQL Server 开发接收器。 Note that there already sinks for other SQL-based databases (MySQL and Postgresql in particular) so they could be a good starting point.请注意,其他基于 SQL 的数据库(尤其是 MySQL 和 Postgresql)已经有接收器,因此它们可能是一个很好的起点。

If at the end you develop a new sink, it would be a great contribution to Cygnus catalog of sinks.如果最后你开发了一个新的水槽,那将是对 Cygnus 水槽目录的巨大贡献。 Please, don't hesitate to send as the pull request in that请不要犹豫,以拉取请求的形式发送

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

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