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

Method unwrap_db_error

src/environmentd/src/test_util.rs:1398–1403  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1396
1397impl PostgresErrorExt for postgres::Error {
1398 fn unwrap_db_error(self) -> DbError {
1399 match self.source().and_then(|e| e.downcast_ref::<DbError>()) {
1400 Some(e) => e.clone(),
1401 None => panic!("expected DbError, but got: {:?}", self),
1402 }
1403 }
1404}
1405
1406impl<T, E> PostgresErrorExt for Result<T, E>

Callers 7

test_subscribe_basicFunction · 0.80
test_temporary_viewsFunction · 0.80
test_parse_error_codesFunction · 0.80
test_max_request_sizeFunction · 0.80
test_bind_paramsFunction · 0.80

Calls 2

sourceMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected