myTinySQL v0.2.0-2-g5000098
A tiny SQL interpreter over fixed-width text files
Loading...
Searching...
No Matches
Functions
TableFile.cpp File Reference

Implementation of TableFile: reading rows and writing them back safely. More...

#include "TableFile.hpp"
#include <algorithm>
#include <format>
#include <fstream>
#include "Util.hpp"

Go to the source code of this file.

Functions

void tinysql::anonymous_namespace{TableFile.cpp}::checkFits (const Column &column, const std::string &value)
 Checks that a value fits in its column.
 
void tinysql::anonymous_namespace{TableFile.cpp}::place (std::string &record, const Column &column, const std::string &value)
 Writes a value into its column's characters of a row, padded with spaces to the column width.
 

Detailed Description

Implementation of TableFile: reading rows and writing them back safely.

Definition in file TableFile.cpp.