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

◆ GetTableInfo()

std::optional< TableInfo > sqt::Database::GetTableInfo ( std::string_view table_name)

Gets information of the specified table.

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

This method executes the pragma table_info statement to get the table information.