MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / normalize_channel

Function normalize_channel

nodedb/src/control/notify_bus.rs:244–246  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

242/// We receive them already stripped of quotes from the SQL layer, so we just
243/// lowercase everything that wasn't explicitly quoted.
244pub fn normalize_channel(channel: &str) -> String {
245 channel.to_lowercase()
246}
247
248/// Handle for a session's LISTEN subscriptions.
249///

Callers 9

listenMethod · 0.85
unlistenMethod · 0.85
unlisten_allMethod · 0.85
notifyMethod · 0.85
listen_channelMethod · 0.85
unlisten_channelMethod · 0.85
handle_listenMethod · 0.85
handle_notifyMethod · 0.85
handle_unlistenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected