Skip to main content

unique_message

Function unique_message 

Source
pub fn unique_message(table: &TableInfo, index: &IndexInfo) -> String
Expand description

Returns the message a unique-index violation reports.

SQLite names every column of the index, comma separated, which is what an application parses to find out which key collided.

@param table - the table the index belongs to @param index - the index whose key collided