pub struct CypherValidator;Expand description
Cypher 查询校验器
Implementations§
Source§impl CypherValidator
impl CypherValidator
Sourcepub fn validate(query: &CypherQuery) -> Result<(), GraphError>
pub fn validate(query: &CypherQuery) -> Result<(), GraphError>
校验查询:拒绝 SQL 透传 + 强制参数化
Auto Trait Implementations§
impl Freeze for CypherValidator
impl RefUnwindSafe for CypherValidator
impl Send for CypherValidator
impl Sync for CypherValidator
impl Unpin for CypherValidator
impl UnsafeUnpin for CypherValidator
impl UnwindSafe for CypherValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more