Wener Notes

CubeJS Frontend

约 1 分钟阅读
  • React Dashboard Guide
    • demo
    • ReactGridLayout
  • data blending - 一次性查询多个
  • 查询类型
    • regularQuery
    • compareDateRangeQuery
      • timeDimensions 包含 compareDateRange
    • blendingQuery
      • 多个查询
      • 只能是 regularQuery, 不能组合 compareDateRange
JavaScript
const client = cubejs(async () => 'Bearer ' + getAuthToken(), { apiUrl: 'http://localhost:4000/cubejs-api/v1' });
query
{
  "queryType": "multi", // 比较查询和 blending 查询需要指定
  "query": {}
}
  • 可以 POST 也可以 GET 传递参数

date

text
Expression
  = Since _ Unit
  / ("last"/"next") _ Integer _ Unit
  / "today" /"yesterday" / "torrow" / "tomorrow"

Integer "integer"
  = _ [0-9]+ { return parseInt(text(), 10); }

Unit= ("day"/"week"/"month"/"year"/"quarter"/"hour"/"minute"/"second")"s"? {return text()}
Since= "this"/"last"/"next"

_ "whitespace"
  = [ \t\n\r]* {return ''}

关联信息

反向链接、本文链接的其他页面和外部资料。

References

GitHub2 条
其他外链2 条
最近更新commit 60ea754Edit

On this page