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

One entry of a SELECT list: *, a column name, or a 'quoted literal' printed on every row. More...

#include <Statement.hpp>

Public Types

enum class  Kind { Star , Column , Literal }
 Which kind of entry this is. More...
 

Public Attributes

Kind kind
 Which kind of entry this is.
 
std::string text
 The column name or the literal text (* for Kind::Star).
 

Detailed Description

One entry of a SELECT list: *, a column name, or a 'quoted literal' printed on every row.

Definition at line 16 of file Statement.hpp.

Member Enumeration Documentation

◆ Kind

enum class tinysql::SelectItem::Kind
strong

Which kind of entry this is.

Enumerator
Star 

*: every column of the table.

Column 

A column name.

Literal 

A 'quoted text', printed as-is on every row.

Definition at line 18 of file Statement.hpp.

Member Data Documentation

◆ kind

Kind tinysql::SelectItem::kind

Which kind of entry this is.

Definition at line 23 of file Statement.hpp.

◆ text

std::string tinysql::SelectItem::text

The column name or the literal text (* for Kind::Star).

Definition at line 24 of file Statement.hpp.


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