ngbatis
ngbatis copied to clipboard
Where is the scheml DDL ngql lines for ngbatis-demo , please?
ngbatis-demo工程涉及的创建顶点和边的nGQL帮发出来下,谢谢 https://github.com/nebula-contrib/ngbatis/tree/master/ngbatis-demo
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 = "测试用例";
大部分用例主要用到的是这些
要不要考虑改成基于 studio 里自带的数据集其中一个,比如 sns 那个?
或者不变,把 schema + DML 存成一个 .ngql,把它放到 demo 目录下
好想法,我都没注意新版 studio 有内置数据集了
前段时间有个端到端的测试写一半,或许可以在这里使用内置数据。或者对调一下
嗯嗯,这些基本都是我搞的 :-P,所以想来广告一下哈哈,SNS 那个感觉可能会适合
可以把 ngbatis demo 单独弄一个文章,然后我们考虑在 studio 里增加一个单独的入口呢哈
那demo的内容是要有意义一些,参考的作用也会更大。 那这样,现有的demo迁到e2e,毕竟有一些schema的定义是为了尽可能覆盖更多测试 新的 demo 使用 SNS
@50133142 记得以前上传过,不过不是最新的,刚刚一时间忘记放在哪了。 https://graph-cn.github.io/ngbatis-docs/dev-example/prepare.html 回头再把文档更新下
@CorvusYe 非常感谢你