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 {