Skip to content

Commit d4121e8

Browse files
authored
feat: support retry (#239)
* feat: support retry Signed-off-by: Eric Fu <[email protected]> * bump version to 0.25 and update changelog Signed-off-by: Eric Fu <[email protected]> --------- Signed-off-by: Eric Fu <[email protected]>
1 parent ac188cb commit d4121e8

File tree

10 files changed

+241
-46
lines changed

10 files changed

+241
-46
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## [0.25.0] - 2024-12-26
11+
12+
* runner: Add `retry` clause to `statement ok` and `query ok|error`.
13+
1014
## [0.24.0] - 2024-12-20
1115

1216
* runner: Added a `Normalizer` type for normalizing result values. A new function

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resolver = "2"
33
members = ["sqllogictest", "sqllogictest-bin", "sqllogictest-engines", "tests"]
44

55
[workspace.package]
6-
version = "0.24.0"
6+
version = "0.25.0"
77
edition = "2021"
88
homepage = "https://github.com/risinglightdb/sqllogictest-rs"
99
keywords = ["sql", "database", "parser", "cli"]

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ echo $USER
132132
xxchan
133133
```
134134

135+
### Extension: Retry
136+
137+
```text
138+
query I retry 3 backoff 5s
139+
SELECT id FROM test;
140+
----
141+
1
142+
143+
statement ok retry 3 backoff 5s
144+
UPDATE test SET id = 1;
145+
```
146+
135147
### Extension: Environment variable substitution in query and statement
136148

137149
It needs to be enabled by adding `control substitution on` to the test file.

sqllogictest-bin/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ glob = "0.3"
2323
itertools = "0.13"
2424
quick-junit = { version = "0.5" }
2525
rand = "0.8"
26-
sqllogictest = { path = "../sqllogictest", version = "0.24" }
27-
sqllogictest-engines = { path = "../sqllogictest-engines", version = "0.24" }
26+
sqllogictest = { path = "../sqllogictest", version = "0.25" }
27+
sqllogictest-engines = { path = "../sqllogictest-engines", version = "0.25" }
2828
tokio = { version = "1", features = [
2929
"rt",
3030
"rt-multi-thread",

sqllogictest-engines/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ postgres-types = { version = "0.2.8", features = ["derive", "with-chrono-0_4"] }
2020
rust_decimal = { version = "1.36.0", features = ["tokio-pg"] }
2121
serde = { version = "1", features = ["derive"] }
2222
serde_json = "1"
23-
sqllogictest = { path = "../sqllogictest", version = "0.24" }
23+
sqllogictest = { path = "../sqllogictest", version = "0.25" }
2424
thiserror = "2"
2525
tokio = { version = "1", features = [
2626
"rt",

0 commit comments

Comments
 (0)