Skip to main content

connect_readonly

Function connect_readonly 

Source
pub fn connect_readonly(database_url: &str) -> Result<Client>
Expand description

Open a connection for command paths that only read from the hub.

This currently shares the same connection logic as read-write callers, but keeping the intent explicit preserves a routing point for future pools, permissions, or replicas.