| 1234567891011121314151617181920212223242526 |
- -- 11data_crud 目录初始化:基本 CRUD 测试
- -- 创建用于 CRUD 测试的基础 class
- create class if not exists /test/aaa/test_basic (
- name varchar,
- v_text text,
- v_int int,
- v_bigint bigint,
- v_float float,
- v_double double,
- v_bool bool,
- v_ts timestamp,
- v_blob blob,
- indexes(name, v_text, v_int, v_bigint, v_float, v_double, v_bool, v_ts),
- keys(name)
- ) with core=cassandraonly
- ;
- -- 创建带 version 的 class 用于版本数据测试
- create class if not exists /test/aaa/test_basic_ver (
- name varchar,
- value int,
- keys(name)
- ) with version=true, nickname='test_basic_ver'
- ;
|