MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / plan_create_role

Function plan_create_role

src/sql/src/plan/statement/ddl.rs:4526–4535  ·  view source on GitHub ↗
(
    scx: &StatementContext,
    CreateRoleStatement { name, options }: CreateRoleStatement,
)

Source from the content-addressed store, hash-verified

4524}
4525
4526pub fn plan_create_role(
4527 scx: &StatementContext,
4528 CreateRoleStatement { name, options }: CreateRoleStatement,
4529) -> Result<Plan, PlanError> {
4530 let attributes = plan_role_attributes(options, scx)?;
4531 Ok(Plan::CreateRole(CreateRolePlan {
4532 name: normalize::ident(name),
4533 attributes: attributes.into(),
4534 }))
4535}
4536
4537pub fn plan_create_network_policy(
4538 ctx: &StatementContext,

Callers 1

planFunction · 0.85

Calls 3

plan_role_attributesFunction · 0.85
CreateRoleClass · 0.85
identFunction · 0.85

Tested by

no test coverage detected