39init.mql 705 B

12345678910111213141516171819202122232425262728293031323334
  1. create class if not exists /test() with namespace="test"
  2. ;
  3. delete from /test/foo with version
  4. /**
  5. onerror(continue,`not exist`,`not find`,`not found`)
  6. **/
  7. ;
  8. drop class if exists /test/foo
  9. ;
  10. create class if not exists /test/foo (
  11. v_varchar varchar,
  12. v_text text,
  13. v_string text,
  14. v_chars varchar,
  15. v_int int,
  16. v_bigint bigint,
  17. v_double double,
  18. v_float float,
  19. v_bool bool,
  20. v_blob blob,
  21. v_set set<varchar>,
  22. v_map map<varchar,float>,
  23. v_list list<varchar>,
  24. indexes(v_varchar, v_text, v_string, v_chars, v_int, v_bigint, v_double, v_float, v_bool, v_set, v_map, v_list),
  25. keys(v_varchar, v_text)
  26. ) with core=cassandraonly;