|
myTinySQL v0.2.0-2-g5000098
A tiny SQL interpreter over fixed-width text files
|
Reading SYSTEM_TABLE into Catalog, TableSchema and Column objects. More...
#include "Catalog.hpp"#include <algorithm>#include <format>#include <fstream>#include "Util.hpp"Go to the source code of this file.
Classes | |
| struct | tinysql::anonymous_namespace{Catalog.cpp}::Field |
| The position of one field in a SYSTEM_TABLE line. More... | |
Functions | |
| std::string_view | tinysql::anonymous_namespace{Catalog.cpp}::cut (std::string_view line, Field field) |
| Cuts one field out of a SYSTEM_TABLE line. | |
| std::size_t | tinysql::anonymous_namespace{Catalog.cpp}::number (std::string_view line, Field field, std::size_t lineNumber) |
| Reads one numeric field of a SYSTEM_TABLE line. | |
Variables | |
| constexpr Field | tinysql::anonymous_namespace{Catalog.cpp}::kTable {15, 34} |
| Table name. | |
| constexpr Field | tinysql::anonymous_namespace{Catalog.cpp}::kName {35, 54} |
| Column name. | |
| constexpr Field | tinysql::anonymous_namespace{Catalog.cpp}::kType {55, 59} |
Column type (N1 or S1). | |
| constexpr Field | tinysql::anonymous_namespace{Catalog.cpp}::kFrom {60, 64} |
| First character of the column in a data row. | |
| constexpr Field | tinysql::anonymous_namespace{Catalog.cpp}::kTo {65, 69} |
| Last character of the column. | |
| constexpr Field | tinysql::anonymous_namespace{Catalog.cpp}::kRecordLength {75, 79} |
| Length of a full data row. | |
Reading SYSTEM_TABLE into Catalog, TableSchema and Column objects.
Definition in file Catalog.cpp.