datafuselabs / jsonb Goto Github PK
View Code? Open in Web Editor NEWJSONB implement in rust
License: Apache License 2.0
JSONB implement in rust
License: Apache License 2.0
Adding support for functions like PostgreSQL eg:
jsonb_path_query_first('{"a":[1,2,3,4,5]}', '$.a[*] ? (@ >= $min && @ <= $max)', '{"min":2, "max":4}') → 2
Using library like https://github.com/besok/jsonpath-rust should be able to expose more JSON path functionalities.
# databend maintains
jsonb = { git = "https://github.com/datafuselabs/jsonb", rev = "3fe3acd" }
Databend depends on git commits of this crate which is not good.
Hello, everyone!
First off, a big thanks for the excellent JSONB crate. I'm excited to share how GreptimeDB (Tracking issue: GreptimeTeam/greptimedb#4230) uses it to add JSON-type support to our database. With JSONB, we've enhanced our capabilities in managing semi-structured data, which is crucial for many of our users who work with flexible schemas.
@CookiePieWw has been leading the integration efforts, and we've already seen great improvements in functionality.
Thanks again for your amazing work!
Is it possible to use this as web assembly? We could then use jsonb all the way in UI layer also.
JSON path
has already implemented the basic elements accessors and comparison predicates filter expression, in order to support the full JSON Path
language, the following tasks need to be done further.
lax
strict
type()
size()
double()
ceiling()
floor()
abs()
datetime()
keyvalue()
+
or -
+
, -
, *
, /
, %
exists
path predicatelike_regex
predicatestarts with
predicateis unknown
predicateThe syntax and functionality of JSON Path
should be implemented in accordance with the SQL:2016 (ISO/IEC 9075:2016)
standard. Here are some references:
Hi! I'm trying to introduce jsonb
into a project (see GreptimeTeam/greptimedb#4619), but the project relies on the non-preserve-order nature of serde_json
, which conflicts with jsonb
. I've noticed that the feature is used to preserve the order of json objects in conversions, while the order of objects is not guaranteed according to RFC. Are there other things relying on it?
I wonder if it's proper to put a trigger on the feature as what serde_json
does for better compatibility. If so, I'd like to submit a patch for it :)
Also some performance numbers about jsonb vs json.
Add benchmarks for accessing nested fields
Hi there, enabling the use of jsonb-rs in stable Rust would certainly make it more accessible and easier to adopt for users. Have you considered providing a stable-compatible version? This could greatly benefit the wider Rust community.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.