OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sqltypes_lite.h File Reference
#include <ostream>
+ Include dependency graph for sqltypes_lite.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SQLTypeInfoLite
 

Functions

std::ostream & operator<< (std::ostream &os, const SQLTypeInfoLite::SQLTypes &type)
 
std::ostream & operator<< (std::ostream &os, const SQLTypeInfoLite::EncodingType &type)
 
std::ostream & operator<< (std::ostream &os, const SQLTypeInfoLite &ti_lite)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const SQLTypeInfoLite::SQLTypes type 
)
inline

Definition at line 97 of file sqltypes_lite.h.

97  {
98  switch (type) {
99  case SQLTypeInfoLite::SQLTypes::UNSPECIFIED:
100  os << "UNSPECIFIED";
101  break;
102  case SQLTypeInfoLite::SQLTypes::BOOLEAN:
103  os << "BOOLEAN";
104  break;
105  case SQLTypeInfoLite::SQLTypes::TINYINT:
106  os << "TINYINT";
107  break;
108  case SQLTypeInfoLite::SQLTypes::SMALLINT:
109  os << "SMALLINT";
110  break;
111  case SQLTypeInfoLite::SQLTypes::INT:
112  os << "INT";
113  break;
114  case SQLTypeInfoLite::SQLTypes::BIGINT:
115  os << "BIGINT";
116  break;
117  case SQLTypeInfoLite::SQLTypes::FLOAT:
118  os << "FLOAT";
119  break;
120  case SQLTypeInfoLite::SQLTypes::DOUBLE:
121  os << "DOUBLE";
122  break;
123  case SQLTypeInfoLite::SQLTypes::POINT:
124  os << "POINT";
125  break;
126  case SQLTypeInfoLite::SQLTypes::LINESTRING:
127  os << "LINESTRING";
128  break;
129  case SQLTypeInfoLite::SQLTypes::POLYGON:
130  os << "POLYGON";
131  break;
132  case SQLTypeInfoLite::SQLTypes::MULTIPOINT:
133  os << "MULTIPOINT";
134  break;
135  case SQLTypeInfoLite::SQLTypes::MULTILINESTRING:
136  os << "MULTILINESTRING";
137  break;
138  case SQLTypeInfoLite::SQLTypes::MULTIPOLYGON:
139  os << "MULTIPOLYGON";
140  break;
141  case SQLTypeInfoLite::SQLTypes::TEXT:
142  os << "TEXT";
143  break;
144  case SQLTypeInfoLite::SQLTypes::ARRAY:
145  os << "ARRAY";
146  break;
147  }
148  return os;
149 }
std::ostream& operator<< ( std::ostream &  os,
const SQLTypeInfoLite::EncodingType type 
)
inline

Definition at line 150 of file sqltypes_lite.h.

151  {
152  switch (type) {
153  case SQLTypeInfoLite::EncodingType::NONE:
154  os << "NONE";
155  break;
156  case SQLTypeInfoLite::EncodingType::DICT:
157  os << "DICT";
158  break;
159  case SQLTypeInfoLite::EncodingType::GEOINT:
160  os << "GEOINT";
161  break;
162  }
163  return os;
164 }
std::ostream& operator<< ( std::ostream &  os,
const SQLTypeInfoLite ti_lite 
)
inline

Definition at line 165 of file sqltypes_lite.h.

References SQLTypeInfoLite::compression, SQLTypeInfoLite::db_id, SQLTypeInfoLite::dict_id, SQLTypeInfoLite::dimension, SQLTypeInfoLite::scale, SQLTypeInfoLite::subtype, and SQLTypeInfoLite::type.

165  {
166  os << "SQLTypeInfoLite(";
167  os << "type=" << ti_lite.type;
168  os << ", subtype=" << ti_lite.subtype;
169  os << ", compression=" << ti_lite.compression;
170  os << ", dimension=" << ti_lite.dimension;
171  os << ", scale=" << ti_lite.scale;
172  os << ", db_id=" << ti_lite.db_id;
173  os << ", dict_id=" << ti_lite.dict_id;
174  os << ")";
175  return os;
176 }
SQLTypes subtype
Definition: sqltypes_lite.h:54
EncodingType compression
Definition: sqltypes_lite.h:55