MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / build_error_unique

Method build_error_unique

crates/table/src/table.rs:2330–2339  ·  view source on GitHub ↗
(
        &self,
        index: &TableIndex,
        index_id: IndexId,
        row: RowRef<'_>,
    )

Source from the content-addressed store, hash-verified

2328 /// and the `row` that caused the violation.
2329 #[cold]
2330 pub fn build_error_unique(
2331 &self,
2332 index: &TableIndex,
2333 index_id: IndexId,
2334 row: RowRef<'_>,
2335 ) -> UniqueConstraintViolation {
2336 let value = index.project_row(row);
2337 let schema = self.get_schema();
2338 UniqueConstraintViolation::build(schema, index, index_id, value)
2339 }
2340
2341 /// Returns a new empty table using the particulars passed.
2342 fn new_raw(

Callers 2

insert_into_indicesMethod · 0.80

Calls 3

buildFunction · 0.85
project_rowMethod · 0.80
get_schemaMethod · 0.45

Tested by

no test coverage detected