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

Function make_notices

src/environmentd/src/http/sql.rs:1657–1670  ·  view source on GitHub ↗
(client: &mut SessionClient)

Source from the content-addressed store, hash-verified

1655}
1656
1657fn make_notices(client: &mut SessionClient) -> Vec<Notice> {
1658 client
1659 .session()
1660 .drain_notices()
1661 .into_iter()
1662 .map(|notice| Notice {
1663 message: notice.to_string(),
1664 code: notice.code().code().to_string(),
1665 severity: notice.severity().as_str().to_lowercase(),
1666 detail: notice.detail(),
1667 hint: notice.hint(),
1668 })
1669 .collect()
1670}
1671
1672// Duplicated from protocol.rs.
1673// See postgres' backend/tcop/postgres.c IsTransactionExitStmt.

Callers 3

rowsMethod · 0.85
errMethod · 0.85
okMethod · 0.85

Calls 11

drain_noticesMethod · 0.80
severityMethod · 0.80
collectMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45
sessionMethod · 0.45
to_stringMethod · 0.45
codeMethod · 0.45
as_strMethod · 0.45
detailMethod · 0.45
hintMethod · 0.45

Tested by

no test coverage detected