pub(super) fn on_release(&mut self, keep_alive: bool) {
        if keep_alive {
            self.release();
        } else {
            self.close();
        }
    }
/// close or release the connection to pool based on flag input
close or release the connection to pool based on flag input
close or release the connection to pool based on flag input
pub(super) fn on_release(&mut self, keep_alive: bool) {
        if keep_alive {
            self.release();
        } else {
            self.close();
        }
    }
pub ( super ) fn on_release ( & mut self , keep_alive : bool ) { if keep_alive { self . release ( ) ; } else { self . close ( ) ; } }
close or release the connection to pool based on flag input
close or release the connection to pool based on flag input
&mut self
keep_alive
bool
&mut self
keep_alive
bool