Classes | |
class | DatabaseTestObject |
The C++ version of an object stored in a database. More... | |
class | DBClass |
The base class for all C++ classes that can be stored in the database. More... | |
struct | dbField |
class | DBField |
The base class for a usable DBField. More... | |
class | DBField< bool > |
Specialized version for the bool data type, converts to / from string as SQL expects it. More... | |
class | DBField< std::string > |
Specialized version for std::string data type, trivial conversion to/from string. More... | |
class | DBField< std::vector< char > > |
Specialized version for std::vector<char>, the ONLY datatype that provides binary conversion. More... | |
class | DBField< std::vector< std::string > > |
Specialized version for std::vector<std::string> More... | |
class | DBFieldBase |
The base class for a field of a class stored in the database, corresponding to a column in a table. More... | |
class | DBFieldData |
A DBFieldBase that also contains data and perform implicit conversion to and from string. More... | |
struct | DBStreamable |
struct | DBStreamable< double > |
struct | FilterClause |
struct | Notification |
class | PostgresqlDatabase |
class | PostgresqlDatabaseConfig |
Functions | |
template<typename T > | |
FilterClause | operator!= (const DBField< T > &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator!= (const T &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator!= (const DBField< T > &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator!= (const dbField &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator!= (const T &lhs, const dbField &rhs) |
template<typename T > | |
FilterClause | operator!= (const dbField &lhs, const dbField &rhs) |
FilterClause | operator&& (const FilterClause &lhs, const FilterClause &rhs) |
template<typename T > | |
FilterClause | operator< (const DBField< T > &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator< (const T &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator< (const DBField< T > &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator< (const dbField &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator< (const T &lhs, const dbField &rhs) |
template<typename T > | |
FilterClause | operator< (const dbField &lhs, const dbField &rhs) |
template<class V > | |
std::ostream & | operator<< (std::ostream &str, const std::vector< V > &vec) |
Streaming of a vector into a string in accordance to database formatting. | |
template<typename T > | |
FilterClause | operator<= (const DBField< T > &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator<= (const T &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator<= (const DBField< T > &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator<= (const dbField &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator<= (const T &lhs, const dbField &rhs) |
template<typename T > | |
FilterClause | operator<= (const dbField &lhs, const dbField &rhs) |
template<typename T > | |
FilterClause | operator== (const DBField< T > &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator== (const T &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator== (const DBField< T > &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator== (const dbField &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator== (const T &lhs, const dbField &rhs) |
template<typename T > | |
FilterClause | operator== (const dbField &lhs, const dbField &rhs) |
template<typename T > | |
FilterClause | operator> (const DBField< T > &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator> (const T &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator> (const DBField< T > &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator> (const dbField &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator> (const T &lhs, const dbField &rhs) |
template<typename T > | |
FilterClause | operator> (const dbField &lhs, const dbField &rhs) |
template<typename T > | |
FilterClause | operator>= (const DBField< T > &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator>= (const T &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator>= (const DBField< T > &lhs, const DBField< T > &rhs) |
template<typename T > | |
FilterClause | operator>= (const dbField &lhs, const T &rhs) |
template<typename T > | |
FilterClause | operator>= (const T &lhs, const dbField &rhs) |
template<typename T > | |
FilterClause | operator>= (const dbField &lhs, const dbField &rhs) |
void | operator>> (const YAML::Node &node, PostgresqlDatabaseConfig &options) |
Loads YAML doc into configuration params. Throws YAML::ParserException if keys missing. | |
template<class V > | |
std::istream & | operator>> (std::istream &iss, std::vector< V > &vec) |
Streaming of a vector from a string in accordance to database formatting. | |
FilterClause | operator|| (const FilterClause &lhs, const FilterClause &rhs) |
template<typename T > | |
std::string | toString (const T &data) |
template<> | |
std::string | toString< double > (const double &data) |
This file contains basic filtering operators for getting a list of instances out of the database. This works by overloading the operators to take either a DBField<T> or the wrapper dbField that is used to specify a field by name instead of instance. This completely replaces the 'example' parameter. It is now possible to specify filter clauses for a query in c++ syntax like this:
FilterClause database_interface::operator!= | ( | const DBField< T > & | lhs, |
const T & | rhs | ||
) |
Definition at line 284 of file db_filters.h.
FilterClause database_interface::operator!= | ( | const T & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 290 of file db_filters.h.
FilterClause database_interface::operator!= | ( | const DBField< T > & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 296 of file db_filters.h.
FilterClause database_interface::operator!= | ( | const dbField & | lhs, |
const T & | rhs | ||
) |
Definition at line 302 of file db_filters.h.
FilterClause database_interface::operator!= | ( | const T & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 308 of file db_filters.h.
FilterClause database_interface::operator!= | ( | const dbField & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 314 of file db_filters.h.
FilterClause database_interface::operator&& | ( | const FilterClause & | lhs, |
const FilterClause & | rhs | ||
) | [inline] |
Definition at line 320 of file db_filters.h.
FilterClause database_interface::operator< | ( | const DBField< T > & | lhs, |
const T & | rhs | ||
) |
Definition at line 99 of file db_filters.h.
FilterClause database_interface::operator< | ( | const T & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 105 of file db_filters.h.
FilterClause database_interface::operator< | ( | const DBField< T > & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 111 of file db_filters.h.
FilterClause database_interface::operator< | ( | const dbField & | lhs, |
const T & | rhs | ||
) |
Definition at line 117 of file db_filters.h.
FilterClause database_interface::operator< | ( | const T & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 123 of file db_filters.h.
FilterClause database_interface::operator< | ( | const dbField & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 129 of file db_filters.h.
std::ostream& database_interface::operator<< | ( | std::ostream & | str, |
const std::vector< V > & | vec | ||
) |
Streaming of a vector into a string in accordance to database formatting.
Definition at line 202 of file db_field.h.
FilterClause database_interface::operator<= | ( | const DBField< T > & | lhs, |
const T & | rhs | ||
) |
Definition at line 136 of file db_filters.h.
FilterClause database_interface::operator<= | ( | const T & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 142 of file db_filters.h.
FilterClause database_interface::operator<= | ( | const DBField< T > & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 148 of file db_filters.h.
FilterClause database_interface::operator<= | ( | const dbField & | lhs, |
const T & | rhs | ||
) |
Definition at line 154 of file db_filters.h.
FilterClause database_interface::operator<= | ( | const T & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 160 of file db_filters.h.
FilterClause database_interface::operator<= | ( | const dbField & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 166 of file db_filters.h.
FilterClause database_interface::operator== | ( | const DBField< T > & | lhs, |
const T & | rhs | ||
) |
Definition at line 247 of file db_filters.h.
FilterClause database_interface::operator== | ( | const T & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 253 of file db_filters.h.
FilterClause database_interface::operator== | ( | const DBField< T > & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 259 of file db_filters.h.
FilterClause database_interface::operator== | ( | const dbField & | lhs, |
const T & | rhs | ||
) |
Definition at line 265 of file db_filters.h.
FilterClause database_interface::operator== | ( | const T & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 271 of file db_filters.h.
FilterClause database_interface::operator== | ( | const dbField & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 277 of file db_filters.h.
FilterClause database_interface::operator> | ( | const DBField< T > & | lhs, |
const T & | rhs | ||
) |
Definition at line 173 of file db_filters.h.
FilterClause database_interface::operator> | ( | const T & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 179 of file db_filters.h.
FilterClause database_interface::operator> | ( | const DBField< T > & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 185 of file db_filters.h.
FilterClause database_interface::operator> | ( | const dbField & | lhs, |
const T & | rhs | ||
) |
Definition at line 191 of file db_filters.h.
FilterClause database_interface::operator> | ( | const T & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 197 of file db_filters.h.
FilterClause database_interface::operator> | ( | const dbField & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 203 of file db_filters.h.
FilterClause database_interface::operator>= | ( | const DBField< T > & | lhs, |
const T & | rhs | ||
) |
Definition at line 210 of file db_filters.h.
FilterClause database_interface::operator>= | ( | const T & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 216 of file db_filters.h.
FilterClause database_interface::operator>= | ( | const DBField< T > & | lhs, |
const DBField< T > & | rhs | ||
) |
Definition at line 222 of file db_filters.h.
FilterClause database_interface::operator>= | ( | const dbField & | lhs, |
const T & | rhs | ||
) |
Definition at line 228 of file db_filters.h.
FilterClause database_interface::operator>= | ( | const T & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 234 of file db_filters.h.
FilterClause database_interface::operator>= | ( | const dbField & | lhs, |
const dbField & | rhs | ||
) |
Definition at line 240 of file db_filters.h.
void database_interface::operator>> | ( | const YAML::Node & | node, |
PostgresqlDatabaseConfig & | options | ||
) |
Loads YAML doc into configuration params. Throws YAML::ParserException if keys missing.
Definition at line 47 of file postgresql_database.cpp.
std::istream& database_interface::operator>> | ( | std::istream & | iss, |
std::vector< V > & | vec | ||
) |
Streaming of a vector from a string in accordance to database formatting.
Definition at line 158 of file db_field.h.
FilterClause database_interface::operator|| | ( | const FilterClause & | lhs, |
const FilterClause & | rhs | ||
) | [inline] |
Definition at line 325 of file db_filters.h.
std::string database_interface::toString | ( | const T & | data | ) | [inline] |
Definition at line 62 of file db_filters.h.
std::string database_interface::toString< double > | ( | const double & | data | ) | [inline] |
Definition at line 68 of file db_filters.h.