Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## [v0.2.0] - 2023-04-21

### Added

- Feat: Support `JSON path` selector. (#8)
- Feat: Support parse `JSON path` syntax. (#7)

## [v0.1.1] - 2023-03-03

- Rename project name to jsonb.
- Add Readme description. (#4)
- Use stable Rust. (#3)

## v0.1.0 - 2023-03-03

- Implement a `JSON` parser.
- Implement `JSONB` encodes and decodes.
- Implemented a number of `JSONB` functions.


[v0.2.0]: https://github.com/datafuselabs/jsonb/compare/v0.1.1...v0.2.0
[v0.1.1]: https://github.com/datafuselabs/jsonb/compare/v0.1.0...v0.1.1
16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ categories = ["encoding"]
description = "JSONB implement in Rust."
edition = "2021"
homepage = "https://github.com/datafuselabs/jsonb"
keywords = ["json", "jsonb"]
keywords = ["json", "jsonb", "jsonpath"]
license = "Apache-2.0"
name = "jsonb"
repository = "https://github.com/datafuselabs/jsonb"
version = "0.1.1"
rust-version = "1.67"
version = "0.2.0"
rust-version = "1.68"

[dependencies]
byteorder = "1.4.3"
fast-float = "0.2.0"
nom = "7.1.1"
ordered-float = { version = "3.4.0", default-features = false }
serde = { version = "1.0.145", features = ["derive", "rc"] }
serde_json = { version = "1.0.85", default-features = false, features = [
nom = "7.1.3"
ordered-float = { version = "3.6.0", default-features = false }
serde = { version = "1.0.152", features = ["derive", "rc"] }
serde_json = { version = "1.0.95", default-features = false, features = [
"preserve_order",
] }

[dev-dependencies]
goldenfile = "1.4"
goldenfile = "1.4.5"
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "stable"
components = ["rustfmt", "clippy", "rust-src", "miri"]
components = ["rustfmt", "clippy"]
4 changes: 2 additions & 2 deletions src/jsonpath/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ fn op(input: &[u8]) -> IResult<&[u8], BinaryOperator> {
value(BinaryOperator::Eq, tag("==")),
value(BinaryOperator::NotEq, tag("!=")),
value(BinaryOperator::NotEq, tag("<>")),
value(BinaryOperator::Lt, char('<')),
value(BinaryOperator::Lte, tag("<=")),
value(BinaryOperator::Gt, char('>')),
value(BinaryOperator::Lt, char('<')),
value(BinaryOperator::Gte, tag(">=")),
value(BinaryOperator::Gt, char('>')),
))(input)
}

Expand Down