Skip to content
Merged
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
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# jsonb
# jsonb   [![Build Status]][actions] [![Latest Version]][crates.io] [![Crate Downloads]][crates.io]

[build status]: https://img.shields.io/github/actions/workflow/status/datafuselabs/jsonb/rust.yml?branch=main
[actions]: https://github.com/datafuselabs/jsonb/actions?query=branch%3Amain
[latest version]: https://img.shields.io/crates/v/jsonb.svg
[crates.io]: https://crates.io/crates/jsonb
[crate downloads]: https://img.shields.io/crates/d/jsonb.svg



`jsonb` is a jsonb implementation written in Rust. It provides a fast, lightweight, and easy-to-use API for working with jsonb data.

Expand All @@ -8,3 +16,20 @@
- Easy to use API: `jsonb` provides a simple and intuitive API for working with jsonb data, making it easy to get started.
- Safe and secure: `jsonb` is written in Rust, which provides memory safety and thread safety guarantees, making it a safe choice for handling sensitive data.
- Flexible: `jsonb` supports a wide range of data types and can be used to store complex data structures.


## JSONB value struct

``` rust
// JSONB value
#[derive(Clone, PartialEq, Eq)]
pub enum Value<'a> {
Null,
Bool(bool),
String(Cow<'a, str>),
Number(Number),
Array(Vec<Value<'a>>),
Object(Object<'a>),
}
```