1.create.mql 504 B

12345678910111213141516171819202122
  1. create class if not exists /test() with namespace="test"
  2. ;
  3. create class if not exists /test/mpartition (
  4. mv_varchar varchar,
  5. v_text text,
  6. v_int int,
  7. v_bigint bigint,
  8. v_smalldouble double,
  9. v_double double,
  10. v_float float,
  11. v_bool bool,
  12. indexes(mv_varchar, v_text, v_int, v_bigint, v_double, v_float, v_smalldouble, v_bool),
  13. keys(mv_varchar, v_text, v_int)
  14. ) with partition=(mv_varchar,v_int), onconflict=(v_bigint incr)
  15. ;
  16. delete from /test/mpartition with version
  17. ;