(
scx: &StatementContext,
CreateRoleStatement { name, options }: CreateRoleStatement,
)
| 4524 | } |
| 4525 | |
| 4526 | pub 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 | |
| 4537 | pub fn plan_create_network_policy( |
| 4538 | ctx: &StatementContext, |
no test coverage detected