简体   繁体   English

cube.js:将原始 sql 查询发送到多维数据集服务器

[英]cube.js: send raw sql query to cube server

Is it possible to send a raw sql request to a cubejs server?是否可以将原始 sql 请求发送到 cubejs 服务器? The cubejs server would send it as is to the db it is connected to? cubejs 服务器会按原样将其发送到它所连接的数据库吗? I have some edge cases where I would like to let the client send raw sql requests instead of using the cube query format.我有一些边缘情况,我想让客户端发送原始 sql 请求,而不是使用多维数据集查询格式。

The Cube.js way to working with a database would be to create a data schema and write queries in Cube.js format. Cube.js 使用数据库的方法是创建数据模式并以 Cube.js 格式编写查询。 Then, Cube.js will take care of SQL generation and execution.然后,Cube.js 将负责 SQL 的生成和执行。 While, technically, you can have quite complex statements in your cubes' SQL definitions , you will have to use Cube.js query format, anyway.虽然从技术上讲,您可以在多维数据集的 SQL定义中包含相当复杂的语句,但无论如何您都必须使用 Cube.js 查询格式。

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

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