10class.mql 579 B

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