10class.mql 602 B

12345678910111213141516171819202122232425262728293031
  1. delete from /test/basic2 with version
  2. /**
  3. onerror(continue,`not exist`,`not find`,`not found`)
  4. **/
  5. ;
  6. drop class if exists /test/basic2/
  7. ;
  8. create class if not exists /test/basic2 (
  9. v_varchar STRSTR,
  10. v_text text,
  11. v_string text,
  12. v_int int,
  13. v_bigint bigint,
  14. v_smalldouble double,
  15. v_double DOUDOU,
  16. v_float float,
  17. v_bool bool,
  18. v_blob blob,
  19. indexes(v_varchar, v_text, v_string, v_int, v_bigint, v_double, v_float, v_smalldouble, v_bool),
  20. keys(v_varchar, v_text)
  21. ) with core=memory ;
  22. create class if not exists /test/basic2 (
  23. name text,
  24. keys(name)
  25. ) with nickname='basic2';