00init.mql 639 B

1234567891011121314151617181920212223242526
  1. -- 11data_crud 目录初始化:基本 CRUD 测试
  2. -- 创建用于 CRUD 测试的基础 class
  3. create class if not exists /test/aaa/test_basic (
  4. name varchar,
  5. v_text text,
  6. v_int int,
  7. v_bigint bigint,
  8. v_float float,
  9. v_double double,
  10. v_bool bool,
  11. v_ts timestamp,
  12. v_blob blob,
  13. indexes(name, v_text, v_int, v_bigint, v_float, v_double, v_bool, v_ts),
  14. keys(name)
  15. )
  16. ;
  17. -- 创建带 version 的 class 用于版本数据测试
  18. create class if not exists /test/aaa/test_basic_ver (
  19. name varchar,
  20. value int,
  21. keys(name)
  22. ) with version=true
  23. ;