SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ GetIndexInfo()

std::optional< IndexInfo > sqt::Database::GetIndexInfo ( std::string_view index_name)

Gets information of the specified index.

Parameters
index_nameThe name of the index.
Returns
The index information if the index exists; otherwise null.
Exceptions
sqt::SQLErrorThrown if fails to get the index information.

This method executes the pragma index_info statement to get the index information.