|
myTinySQL v0.2.0-2-g5000098
A tiny SQL interpreter over fixed-width text files
|
The definition of one table: its name, its columns, and the length of a row. More...
#include <Catalog.hpp>
Public Member Functions | |
| std::optional< std::size_t > | indexOf (std::string_view columnName) const |
| Finds a column by name. | |
| bool | hasAutoId () const |
| Tells whether rows are numbered automatically. | |
Public Attributes | |
| std::string | name |
Table name, e.g. EMPLOY. | |
| std::vector< Column > | columns |
| Columns in file order. | |
| std::size_t | recordLength = 0 |
| Length of a full row, in characters. | |
The definition of one table: its name, its columns, and the length of a row.
Definition at line 31 of file Catalog.hpp.
| bool tinysql::TableSchema::hasAutoId | ( | ) | const |
Tells whether rows are numbered automatically.
Definition at line 69 of file Catalog.cpp.
| std::optional< std::size_t > tinysql::TableSchema::indexOf | ( | std::string_view | columnName | ) | const |
Finds a column by name.
| columnName | The name to look for (case-insensitive). |
std::nullopt if there is no such column. Definition at line 60 of file Catalog.cpp.
| std::vector<Column> tinysql::TableSchema::columns |
Columns in file order.
Definition at line 33 of file Catalog.hpp.
| std::string tinysql::TableSchema::name |
Table name, e.g. EMPLOY.
Definition at line 32 of file Catalog.hpp.
| std::size_t tinysql::TableSchema::recordLength = 0 |
Length of a full row, in characters.
Definition at line 34 of file Catalog.hpp.