MCPcopy Create free account
hub / github.com/documentdb/documentdb / IsActionSupported

Function IsActionSupported

pg_documentdb/src/commands/roles.c:1884–1895  ·  view source on GitHub ↗

* Check if an action string is in the SupportedActions list. */

Source from the content-addressed store, hash-verified

1882 * Check if an action string is in the SupportedActions list.
1883 */
1884static bool
1885IsActionSupported(const char *action)
1886{
1887 for (int i = 0; i < NumSupportedActions; i++)
1888 {
1889 if (strcmp(action, SupportedActions[i]) == 0)
1890 {
1891 return true;
1892 }
1893 }
1894 return false;
1895}

Callers 1

ParseActionsArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected