Skip to content

Commit

Permalink
- releasing version 0.2.2
Browse files Browse the repository at this point in the history
- added SET json with help of multipath
- changed coerce identifier changed
  • Loading branch information
julfikar committed May 24, 2023
1 parent d6557af commit 9a2d43a
Show file tree
Hide file tree
Showing 12 changed files with 3,363 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flql"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["Mohammad Julfikar <julfikar@eztech.com.my>", "Mohammad Julfikar <md.julfikar.mahmud@gmail.com>"]
categories = ["parser-implementations"]
Expand All @@ -19,7 +19,6 @@ anydate = "0.3.0"
anyhow = "1.0.69"
chrono = { version = "0.4.23", features = ["serde"] }
clap = { version = "4.1.4", features = ["derive"] }
gjson = "0.8.1"
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.92"
thiserror = "1.0.38"
Expand Down
5 changes: 3 additions & 2 deletions src/exp_parser.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
use crate::lexer::{Token, TokenKind, Tokenizer};
use anyhow::anyhow;
use chrono::{DateTime, Utc};
use gjson::Kind;
use serde::Serialize;
use std::collections::BTreeMap;
use std::fmt::{Debug, Display, Formatter};
use std::iter::Peekable;
use thiserror::Error;
use crate::gjson::gjson;
use crate::gjson::gjson::{get_bytes, Kind};

/// Represents the calculated Expression result.
#[derive(Debug, PartialEq, Clone, Serialize)]
Expand Down Expand Up @@ -744,7 +745,7 @@ struct SelectorPath {

impl Expression for SelectorPath {
fn calculate(&self, json: &[u8]) -> Result<Value> {
Ok(unsafe { gjson::get_bytes(json, &self.ident).into() })
Ok(unsafe { get_bytes(json, &self.ident).into() })
}
}

Expand Down
7 changes: 7 additions & 0 deletions src/gjson.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pub(crate) mod gjson;
mod modifiers;
mod multipath;
mod path;
mod pretty;
mod util;
mod valid;

0 comments on commit 9a2d43a

Please sign in to comment.