项目作者: onelittlenightmusic

项目描述 :
YAML format for star schema and snowflake schema
高级语言:
项目地址: git://github.com/onelittlenightmusic/star-yaml.git
创建时间: 2018-08-24T15:44:46Z
项目社区:https://github.com/onelittlenightmusic/star-yaml

开源协议:

下载


star-yaml

Non-proprietary YAML format for star schema and snowflake schema

Goal

  • Simple and readable (YAML)
  • No dependency on individual table definition (SQL, GraphQL, etc)
  • Integration of any table definition
  • ONLY join keys will be defined as a connnection among tables
  1. apiVersion: v1
  2. kind: Star
  3. tables:
  4. - name: User
  5. metadata:
  6. root: true
  7. definition:
  8. type: sql
  9. url: 'postgres://localhost:5432'
  10. query: 'users'
  11. links:
  12. - to: 'Location'
  13. as: 'location'
  14. sameAt:
  15. address: address
  16. - name: Location
  17. definition:
  18. type: graphql-opencrud
  19. url: 'http://localhost:4021'
  20. query: 'locations'

Docs

Examples

There are example YAMLs to represent each chapter star schemas from Data warehouse toolkit by Ralph Kimball, Mergy Ross

Contents Chapter Fact(root) table
Retail Sales 3 RetailSales
Inventory 4 Inventories
Procurement 5 Procurements
GeneralLedger 7 GeneralLedger
CRM 8 Transactions
Human Resource 9 EmployeeTransactions

Tools

  • graphql-stargen
    Mashup gateway automatically generated according to star-yaml description

License

Open source.
Apache licence version 2.

Contribution

Feel free to add issues and features.