Normalize a channel name to lowercase, matching PG unquoted-identifier rules. Quoted identifiers preserve case; unquoted identifiers are folded to lowercase. We receive them already stripped of quotes from the SQL layer, so we just lowercase everything that wasn't explicitly quoted.
(channel: &str)
| 242 | /// We receive them already stripped of quotes from the SQL layer, so we just |
| 243 | /// lowercase everything that wasn't explicitly quoted. |
| 244 | pub fn normalize_channel(channel: &str) -> String { |
| 245 | channel.to_lowercase() |
| 246 | } |
| 247 | |
| 248 | /// Handle for a session's LISTEN subscriptions. |
| 249 | /// |
no outgoing calls
no test coverage detected