security_change_script
Generate a reviewable SQL script for planned security changes instead of running them, with warnings and a header so a DBA can inspect and execute safely.
Instructions
Read-only: one or more changes as a SQL script for review (e.g. by a DBA), instead of running them. The
statements are what Run would execute, rebuilt from the cluster state now (each change checked as if the
earlier ones had run), in a safe order (creates, grants, revokes, drops) unless keep_order, with a header
(connection, connected user, time, one line per change) and each change's warnings as -- WARNING:
comments. Runs nothing and needs none of the change privileges. Never takes or writes a password: CREATE USER
gets IDENTIFIED BY '<set password>' to fill in.
Args:
actions: The changes, each the same object as for security_change_plan.
keep_order: Keep the given order instead of the safe order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | ||
| keep_order | No |