AddDatabase records a database changed by a non-table-object write (Tier 2): a qualified object DDL (CREATE/ALTER/DROP VIEW/PROCEDURE/FUNCTION/TRIGGER/...) whose only auth-relevant identity is its target database. Auth-only; not surfaced in Build().
(database string)
| 131 | // object DDL (CREATE/ALTER/DROP VIEW/PROCEDURE/FUNCTION/TRIGGER/...) whose only auth-relevant |
| 132 | // identity is its target database. Auth-only; not surfaced in Build(). |
| 133 | func (r *ChangedResources) AddDatabase(database string) { |
| 134 | if r.databaseOnly == nil { |
| 135 | r.databaseOnly = make(map[string]bool) |
| 136 | } |
| 137 | r.databaseOnly[database] = true |
| 138 | } |
| 139 | |
| 140 | // GetDatabaseOnlyTargets returns the databases recorded via AddDatabase (non-table-object |
| 141 | // write targets). Used by the SQL-editor write-authorization path. |
no outgoing calls
no test coverage detected