MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / revoke_role_statement

Function revoke_role_statement

graphlite/src/ast/parser.rs:3625–3640  ·  view source on GitHub ↗

Parse REVOKE ROLE statement: REVOKE ROLE role_name FROM username

(tokens: &[Token])

Source from the content-addressed store, hash-verified

3623
3624/// Parse REVOKE ROLE statement: REVOKE ROLE role_name FROM username
3625fn revoke_role_statement(tokens: &[Token]) -> IResult<&[Token], RevokeRoleStatement> {
3626 map(
3627 tuple((
3628 expect_token(Token::Revoke),
3629 expect_token(Token::Role),
3630 string_literal, // role_name
3631 expect_token(Token::From),
3632 string_literal, // username
3633 )),
3634 |(_, _, role_name, _, username)| RevokeRoleStatement {
3635 role_name,
3636 username,
3637 location: Location::default(),
3638 },
3639 )(tokens)
3640}
3641
3642/// Parse CREATE PROCEDURE statement
3643/// Syntax: CREATE [OR REPLACE] PROCEDURE [IF NOT EXISTS] procedure_name ([params]) procedure_body

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected