10class1.mql 624 B

1234567891011121314151617181920212223242526
  1. create class if not exists Car : /test/oo (
  2. wheel Wheel[4..4],
  3. remark varchar,
  4. indexes(remark)
  5. ) with key=manu ;
  6. create class if not exists Camry : Car () with key=manu ;
  7. alter class /test/oo/car add column bk2 bucket {
  8. "type" : "tsdb",
  9. "param" : ["iparam1","iparam2","fparam1","fparam2","sparam1","vparam1"],
  10. "ptype" : ["i","i","f","f","s","s"],
  11. "unit" : ["%","m","ms","ns","",""],
  12. "precision":[0,0,3,4,0,0],
  13. "ttl" : 365,
  14. "crc" : ["iparam1", "sparam1"]
  15. } 'full',
  16. wwheel Wheel[4..4] "hhh"
  17. /**
  18. onerror(continue)
  19. **/
  20. ;