1class.mql 659 B

123456789101112131415161718192021222324252627282930
  1. create class if not exists /oktest() with namespace="oktest"
  2. ;
  3. delete from /oktest/bbb with version
  4. /**
  5. onerror(continue,`not exist`,`not find`,`not found`)
  6. **/
  7. ;
  8. drop class if exists /oktest/bbb
  9. ;
  10. create class /oktest/bbb (
  11. v_varchar varchar,
  12. v_text text,
  13. v_int int,
  14. v_bigint bigint,
  15. v_double double,
  16. v_float float,
  17. v_bool bool,
  18. v_date date,
  19. v_time_start timestamp,
  20. v_time_end timestamp,
  21. indexes(v_varchar, v_text, v_int, v_bigint, v_double, v_float, v_bool, v_date, v_time_start, v_time_end),
  22. keys(v_varchar, v_date, v_time_start, v_time_end)
  23. ) with core=cassandraonly;