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

Function sqlstate

nodedb/src/control/server/pgwire/handler/copy_handler.rs:181–187  ·  view source on GitHub ↗
(code: &str, message: &str)

Source from the content-addressed store, hash-verified

179}
180
181fn sqlstate(code: &str, message: &str) -> PgWireError {
182 PgWireError::UserError(Box::new(ErrorInfo::new(
183 "ERROR".into(),
184 code.into(),
185 message.into(),
186 )))
187}
188
189fn internal(e: crate::Error) -> PgWireError {
190 // Surface error string but never echo deserializer context — the

Callers 4

intent_to_responseMethod · 0.70
on_copy_dataMethod · 0.70
on_copy_doneMethod · 0.70
internalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected