myTinySQL v0.2.0-2-g5000098
A tiny SQL interpreter over fixed-width text files
Loading...
Searching...
No Matches
Public Attributes | List of all members
tinysql::StatementResult Struct Reference

What running one statement produced: a table, a message, or an error. More...

#include <Session.hpp>

Public Attributes

std::string sql
 The statement as it was run.
 
std::string tableName
 The table the statement worked on, if any.
 
std::optional< ResultSet > table
 The rows, for SELECT and DESCRIBE.
 
std::string message
 E.g. "1 row inserted ...", or the error text.
 
bool failed = false
 True if the statement failed; message holds the error.
 
bool silent = false
 True for COLUMN and comments: nothing to show.
 

Detailed Description

What running one statement produced: a table, a message, or an error.

Definition at line 29 of file Session.hpp.

Member Data Documentation

◆ failed

bool tinysql::StatementResult::failed = false

True if the statement failed; message holds the error.

Definition at line 34 of file Session.hpp.

◆ message

std::string tinysql::StatementResult::message

E.g. "1 row inserted ...", or the error text.

Definition at line 33 of file Session.hpp.

◆ silent

bool tinysql::StatementResult::silent = false

True for COLUMN and comments: nothing to show.

Definition at line 35 of file Session.hpp.

◆ sql

std::string tinysql::StatementResult::sql

The statement as it was run.

Definition at line 30 of file Session.hpp.

◆ table

std::optional<ResultSet> tinysql::StatementResult::table

The rows, for SELECT and DESCRIBE.

Definition at line 32 of file Session.hpp.

◆ tableName

std::string tinysql::StatementResult::tableName

The table the statement worked on, if any.

Definition at line 31 of file Session.hpp.


The documentation for this struct was generated from the following file: