Skip to main content

table_id_from_i32

Function table_id_from_i32 

Source
pub fn table_id_from_i32(value: i32) -> Result<TableId, CatalogError>
Expand description

Parses a registered table id from SPI/catalog storage.

§Errors

Returns CatalogError::InvalidTableId when value is negative or overflows u32.

§Performance

This function is O(1).