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

Method code

src/environmentd/src/http/sql.rs:105–111  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

103 }
104
105 pub fn code(&self) -> SqlState {
106 match self {
107 Error::Adapter(err) => err.code(),
108 Error::AbortedTransaction => SqlState::IN_FAILED_SQL_TRANSACTION,
109 _ => SqlState::INTERNAL_ERROR,
110 }
111 }
112}
113
114static PER_REPLICA_LABELS: &[&str] = &["replica_full_name", "instance_id", "replica_id"];

Callers 5

forward_noticesFunction · 0.45
fromMethod · 0.45
make_noticesFunction · 0.45

Calls

no outgoing calls