Loxahatchee  v0.0.1-1346
Lox Convenience C++ Library
LoxDBTypes.hpp File Reference

Several common or convenient database-centric data types. More...

#include <pqxx/pqxx>
#include "LoxTypes.hpp"
Include dependency graph for LoxDBTypes.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 Lox
 Common methods and functionality easily shared between projects.
 

Macros

#define DBNullId   0
 Index zero is reserved to represent a NULL value in the database. More...
 

Typedefs

typedef std::size_t Lox::DBId
 Convenient type to use for database serial types, which is a large unsigned number starting at zero. More...
 
typedef pqxx::nontransaction Lox::DBNT
 Database non-transaction. No need to call DBNT::commit(), and calling DBNT::abort() has no effect. More...
 
typedef pqxx::result Lox::DBResult
 Database results. May represent many rows. More...
 
typedef pqxx::result::reference Lox::DBRow
 A single row from the database result. More...
 
typedef pqxx::work Lox::DBT
 Database transaction object. Must remember to call DBT::commit() before the transaction goes out of scope. More...
 
typedef std::map< DBId, std::string > Lox::MIdStr
 Map ID to string. More...
 
typedef std::set< DBId > Lox::SId
 Set of database indexes. More...
 
typedef std::vector< DBId > Lox::VId
 Vector of database indexes. More...
 

Detailed Description

Several common or convenient database-centric data types.

Macro Definition Documentation

#define DBNullId   0

Index zero is reserved to represent a NULL value in the database.