| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- -- ============================================================
- -- schema(C) 检查类是否存在
- -- ============================================================
- -- 1. schema 检查已存在的 class
- /**
- schema(/test/aaa/test_ext)
- **/
- ;
- select count(*) from /test/aaa/test_ext
- /**
- output()
- **/
- ;
- -- 2. schema 检查不存在的 class(应跳过)
- /**
- schema(/test/aaa/non_exist_schema_class)
- **/
- ;
- select count(*) from /test/aaa/non_exist_schema_class
- /**
- onerror(continue,'not exist','not find','not found')
- **/
- ;
- -- 3. 使用 schema 验证 class 存在后才执行
- /**
- schema(/test/aaa/test_ext)
- **/
- ;
- select e_name from /test/aaa/test_ext where e_name='ext_001'
- /**
- output()
- count(1)
- **/
- ;
|