Skip to content

Commit

Permalink
fix: restore proof-of-sql-parser crate
Browse files Browse the repository at this point in the history
  • Loading branch information
iajoiner committed Dec 16, 2024
1 parent 179da05 commit 1807f71
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/proof-of-sql-parser/src/utility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ use crate::{
};
use alloc::{boxed::Box, vec, vec::Vec};

///
/// # Panics
///
/// This function will panic if`name`(if provided) cannot be parsed.
/// Construct an identifier from a str
#[must_use]
pub fn ident(name: &str) -> Identifier {
name.parse().unwrap()
}

/// Construct a new boxed `Expression` A == B
#[must_use]
pub fn equal(left: Box<Expression>, right: Box<Expression>) -> Box<Expression> {
Expand Down

0 comments on commit 1807f71

Please sign in to comment.