MCPcopy Create free account
hub / github.com/apache/datafusion / with_state

Method with_state

datafusion/session/src/session.rs:184–187  ·  view source on GitHub ↗

Set the session state of the store

(&self, state: Weak<RwLock<dyn Session>>)

Source from the content-addressed store, hash-verified

182
183 /// Set the session state of the store
184 pub fn with_state(&self, state: Weak<RwLock<dyn Session>>) {
185 let mut lock = self.session.lock();
186 *lock = Some(state);
187 }
188
189 /// Get the current session of the store
190 pub fn get_session(&self) -> Weak<RwLock<dyn Session>> {

Callers 1

enable_url_tableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected