Skip to content

Commit 8c91229

Browse files
committed
update CHANGELOG.md
1 parent fb44cc5 commit 8c91229

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
## 0.0.1+1
2-
- 支持在创建连接时指定Space(可选)
2+
- 支持在创建连接如指定了默认的space,则自动使用该space
33
- 适配dart_gdbc v0.0.1+3
44
- 修改了Statement的接口
5-
- PreparedStatement支持gql参数渲染
5+
- PreparedStatement支持gql参数渲染回调函数
6+
```dart
7+
stmt = await conn?.prepareStatement(
8+
'MATCH (n:person) WHERE id(n) == '{name}' RETURN n LIMIT 30',
9+
render: (gql, param) => gql.replaceAll('{name}', param?['name']), // 可以自行指定顺手的字符串模板来替换
10+
);
11+
12+
var rs = await stmt?.executeQuery(params: {'name': '张小南'});
13+
rs = await stmt?.executeQuery(params: {'name': '吴小极'});
14+
```
615
- 完善PreparedStatement的带参实现
716
- 拓展方法
817
- string.bytes 获取 Int8List

0 commit comments

Comments
 (0)