MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / create_frontend

Method create_frontend

src/adapter/src/coord/statement_logging.rs:102–112  ·  view source on GitHub ↗

Create a `StatementLoggingFrontend` for use by frontend peek sequencing. This provides the frontend with all the state it needs to perform statement logging without direct access to the Coordinator.

(
        &self,
        build_info_human_version: String,
    )

Source from the content-addressed store, hash-verified

100 /// This provides the frontend with all the state it needs to perform statement
101 /// logging without direct access to the Coordinator.
102 pub(crate) fn create_frontend(
103 &self,
104 build_info_human_version: String,
105 ) -> StatementLoggingFrontend {
106 StatementLoggingFrontend {
107 throttling_state: Arc::clone(&self.throttling_state),
108 reproducible_rng: Arc::clone(&self.reproducible_rng),
109 build_info_human_version,
110 now: self.now.clone(),
111 }
112 }
113}
114
115impl Coordinator {

Callers 1

handle_startupMethod · 0.80

Calls 2

cloneFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected