From 1807f71dfaa8561e2a28539ae767c6bbb4baf174 Mon Sep 17 00:00:00 2001 From: Ian Joiner <14581281+iajoiner@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:30:42 -0500 Subject: [PATCH] fix: restore `proof-of-sql-parser` crate --- crates/proof-of-sql-parser/src/utility.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/proof-of-sql-parser/src/utility.rs b/crates/proof-of-sql-parser/src/utility.rs index 9490b52c7..cf9d7781e 100644 --- a/crates/proof-of-sql-parser/src/utility.rs +++ b/crates/proof-of-sql-parser/src/utility.rs @@ -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, right: Box) -> Box {