ngbatis
ngbatis copied to clipboard
NGBATIS is a database ORM framework base NebulaGraph + spring-boot, which takes advantage of the mybatis’ fashion development, including some de-factor operations in single table and vertex-edge, like...


as title
我参照了提供的示例进行测试,开始传递一个字符串时一直查不到数据,于是又尝试传递一个Person对象,这个时候出现报错,提示变量不存在。   
- 在我第一条语句的没有使用use space的时候,默认会去查找配置文件中的nebula.space 属性 ``` FETCH PROP ON edge_collect_weixin '123' YIELD vertex AS v ``` - 第二条语句使用了use space的时候,会切换成我的space ``` USE ${spaceName}; INSERT EDGE aaa.... ``` - 当我在去使用第一条语句的时候,我发现,没有使用图空间了 
``` org.nebula.contrib.ngbatis.exception.QueryException: 数据查询失败:java.net.SocketException: Connection reset by peer: socket write error ``` - 有时会断开连接的情况,请问我应该如何配置?我是根据 ``` nebula: hosts: 127.0.0.1:19669, ip:port, .... username: root password: nebula space: test pool-config: min-conns-size: 0 max-conns-size: 10...
使用语句
- 这是我的语句,我不知道上面时候可能进行了切换空间,这语句在nebula中是有数据的,但执行该条后没有返回 ``` - nGql: USE general_drawing; SHOW CREATE EDGE edge_toll; - params: {spaceName=general_drawing, edgeName=edge_toll} - result:null ``` - 以下是我的重启我的java应用后的语句 ``` - nGql:USE general_drawing; USE general_drawing; SHOW CREATE EDGE edge_weixin_chat;...
are we going to use nebula-java session pool in ngbatis?
期望能增加自定义配置数据源的形式,而不是只能读取指定的property。 【目前】 ```java private NebulaJdbcProperties getNebulaJdbcProperties(ConfigurableEnvironment environment) { NebulaJdbcProperties nebulaJdbcProperties = new NebulaJdbcProperties(); return nebulaJdbcProperties.setHosts((String)Objects.requireNonNull(environment.getProperty("nebula.hosts"))).setUsername(environment.getProperty("nebula.username")).setPassword(environment.getProperty("nebula.password")).setSpace(environment.getProperty("nebula.space")); } private NebulaPoolConfig getNebulaPoolConfig(ConfigurableEnvironment environment) { NebulaPoolConfig nebulaPoolConfig = (new NebulaPoolConfig()).setMinConnSize((Integer)environment.getProperty("nebula.pool-config.min-conn-size", Integer.class, 0)).setMaxConnSize((Integer)environment.getProperty("nebula.pool-config.max-conn-size", Integer.class, 10)).setTimeout((Integer)environment.getProperty("nebula.pool-config.timeout",...
NgbatisContextInitializer类的initialize方法,springcloud会执行两次,配置中心里的数据只会在第二次执行该方法的时候才有,所以第一次执行该方法会因为没配置项数据而报错