Shared utility functions for PgRest modules.
Summary
Functions
Converts a string to an existing atom, passing atoms through unchanged.
Converts a string to an existing atom, returning nil if the atom does not exist.
Functions
Converts a string to an existing atom, passing atoms through unchanged.
Raises ArgumentError if the atom does not already exist.
@spec safe_to_existing_atom(atom()) :: atom()
@spec safe_to_existing_atom(String.t()) :: atom() | nil
Converts a string to an existing atom, returning nil if the atom does not exist.
Passes atoms through unchanged.