ngbatis icon indicating copy to clipboard operation
ngbatis copied to clipboard

Where is the scheml DDL ngql lines for ngbatis-demo , please?

Open 50133142 opened this issue 1 year ago • 8 comments

ngbatis-demo工程涉及的创建顶点和边的nGQL帮发出来下,谢谢 https://github.com/nebula-contrib/ngbatis/tree/master/ngbatis-demo

50133142 avatar Jun 26 '23 06:06 50133142

CREATE SPACE `test` (
  partition_num = 100, 
  replica_factor = 1, 
  charset = utf8, 
  collate = utf8_bin, 
  vid_type = FIXED_STRING(20), 
  atomic_edge = false
);
CREATE TAG `person` ( 
  `name` string NULL, 
  `age` int64 NULL, 
  `birthday` datetime NULL, 
  `gender` string NULL COMMENT "Gender", 
  `height` double NULL 
) ttl_duration = 0, ttl_col = "";
CREATE EDGE `like` ( `likeness` double NULL ) ttl_duration = 0, ttl_col = "";
CREATE TAG `time_test` ( 
  `t_date` date NULL, 
  `t_datetime` datetime NULL, 
  `t_time` time NULL, 
  `t_timestamp` timestamp NULL,
  `t_duration` duration NULL 
) ttl_duration = 0, ttl_col = "";
CREATE TAG `column_alias` ( 
  `id_no` string NULL, 
  `first_name` string NULL, 
  `last_name` string NULL
) ttl_duration = 0, ttl_col = "", comment = "测试用例";

大部分用例主要用到的是这些

CorvusYe avatar Jun 26 '23 10:06 CorvusYe

Screenshot 2023-06-26 at 18 24 47

要不要考虑改成基于 studio 里自带的数据集其中一个,比如 sns 那个?

或者不变,把 schema + DML 存成一个 .ngql,把它放到 demo 目录下

wey-gu avatar Jun 26 '23 10:06 wey-gu

好想法,我都没注意新版 studio 有内置数据集了 前段时间有个端到端的测试写一半,或许可以在这里使用内置数据。或者对调一下 image

CorvusYe avatar Jun 26 '23 10:06 CorvusYe

嗯嗯,这些基本都是我搞的 :-P,所以想来广告一下哈哈,SNS 那个感觉可能会适合

wey-gu avatar Jun 26 '23 10:06 wey-gu

可以把 ngbatis demo 单独弄一个文章,然后我们考虑在 studio 里增加一个单独的入口呢哈

wey-gu avatar Jun 26 '23 10:06 wey-gu

那demo的内容是要有意义一些,参考的作用也会更大。 那这样,现有的demo迁到e2e,毕竟有一些schema的定义是为了尽可能覆盖更多测试 新的 demo 使用 SNS

CorvusYe avatar Jun 26 '23 10:06 CorvusYe

@50133142 记得以前上传过,不过不是最新的,刚刚一时间忘记放在哪了。 https://graph-cn.github.io/ngbatis-docs/dev-example/prepare.html 回头再把文档更新下

CorvusYe avatar Jun 26 '23 10:06 CorvusYe

@CorvusYe 非常感谢你

50133142 avatar Jun 27 '23 02:06 50133142