|
| Table () |
|
| Table (std::string schemaName, std::string tableName, int tableType=kGenericTable, std::string dbhost="", std::string dbname="", std::string dbport="", std::string dbuser="") |
|
| ~Table () |
|
std::string | Name () |
|
std::string | DBName () |
|
std::string | DBHost () |
|
std::string | User () |
|
std::string | Role () |
|
std::string | DBPort () |
|
int | TableType () |
|
int | DataSource () |
|
int | DataTypeMask () |
|
void | SetTableName (std::string tname) |
|
void | SetTableName (const char *tname) |
|
void | SetDataSource (std::string ds) |
|
void | SetDataSource (int ids) |
|
bool | SetTableType (int t) |
|
void | SetDataTypeMask (int mask) |
|
void | SetIgnoreEnvVar (bool f) |
|
void | SetUser (std::string uname) |
|
void | SetUser (const char *uname) |
|
bool | SetRole (std::string role) |
|
bool | SetRole (const char *role) |
|
void | SetDBName (std::string dbname) |
|
void | SetDBName (const char *dbname) |
|
void | SetDBHost (std::string dbhost) |
|
void | SetDBHost (const char *dbhost) |
|
void | SetDBPort (std::string p) |
|
void | SetDBPort (const char *p) |
|
void | SetDBInfo (std::string name, std::string host, std::string port, std::string user) |
|
void | SetDBInfo (const char *name, const char *host, const char *port, const char *user) |
|
bool | SetPasswordFile (const char *fname=0) |
| fname should be the name of the file More...
|
|
void | ClearPassword () |
|
void | DisablePasswordAccess () |
|
void | ResetRole () |
|
void | SetVerbosity (int i) |
|
int | NCol () |
|
int | NRow () |
|
void | Clear () |
|
void | ClearRows () |
|
nutools::dbi::Row *const | GetRow (int i) |
|
void | AddRow (const Row *row) |
|
void | AddRow (const Row &row) |
|
int | AddCol (std::string cname, std::string ctype) |
|
void | AddEmptyRows (unsigned int nrow) |
|
bool | RemoveRow (int i) |
|
nutools::dbi::Row *const | NewRow () |
|
std::vector< std::string > | GetColNames () |
|
std::map< std::string, int > | GetColNameToIndexMap () |
|
std::string | GetColName (int i) |
|
int | GetColIndex (std::string cname) |
|
const nutools::dbi::ColumnDef * | GetCol (int i) |
|
const nutools::dbi::ColumnDef * | GetCol (std::string &cname) |
|
const nutools::dbi::ColumnDef * | GetCol (const char *cname) |
|
void | SetTolerance (std::string &cname, float t) |
|
float | Tolerance (std::string &cname) |
|
bool | ExistsInDB () |
|
bool | ExecuteSQL (std::string cmd, PGresult *&res) |
|
bool | LoadFromCSV (std::string fname) |
|
bool | LoadFromCSV (const char *fname) |
|
bool | LoadFromDB () |
|
bool | WriteToDB (bool commit=true) |
| use commit=false if just testing More...
|
|
bool | WriteToCSV (std::string fname, bool appendToFile=false, bool writeColNames=false) |
|
bool | WriteToCSV (const char *fname, bool appendToFile=false, bool writeColNames=false) |
|
void | ClearValidity () |
|
bool | AddDistinctColumn (unsigned int i) |
|
bool | AddDistinctColumn (std::string col) |
|
bool | AddDistinctColumn (const char *col) |
|
bool | RemoveDistinctColumn (unsigned int i) |
|
bool | RemoveDistinctColumn (std::string col) |
|
bool | RemoveDistinctColumn (const char *col) |
|
bool | AddOrderColumn (unsigned int i) |
|
bool | AddOrderColumn (std::string col) |
|
bool | AddOrderColumn (const char *col) |
|
bool | RemoveOrderColumn (unsigned int i) |
|
bool | RemoveOrderColumn (std::string col) |
|
bool | RemoveOrderColumn (const char *col) |
|
void | SetSelectLimit (int limit) |
|
void | SetSelectOffset (int offset) |
|
void | SetOrderDesc () |
|
void | SetOrderAsc () |
|
void | AddExcludeCol (std::string col) |
|
void | ClearExcludedCols () |
|
bool | GetCurrSeqVal (std::string col, long &iseq) |
|
bool | GetCurrSeqVal (const char *col, long &iseq) |
|
int | GetNPKeyCol () |
|
const nutools::dbi::ColumnDef * | GetPKeyCol (int i) |
|
void | PrintPQErrorMsg () const |
|
std::string | GetValiditySQL () |
|
void | SetValiditySQL (std::string cmd) |
|
bool | SetDetector (std::string det) |
|
bool | GetDetector (std::string &det) const |
|
void | SetSchema (std::string s) |
|
std::string | Schema () |
|
template<class T > |
bool | SetValidityRange (std::string cname, T start, T end) |
|
template<class T > |
bool | SetValidityRange (std::string cname, T start) |
|
void | RemoveValidityRange (std::string &cname) |
|
void | RemoveValidityRange (const char *cname) |
|
void | PrintColumns () |
|
bool | GetConnection (int ntry=0) |
|
bool | CloseConnection () |
|
void | SetConnectionTimeout (int n) |
|
int | GetConnectionTimeout () |
|
bool | ResetConnectionInfo () |
|
void | CacheDBCommand (std::string cmd) |
|
void | SetMinTSVld (float t) |
|
void | SetMaxTSVld (float t) |
|
float | GetMaxTSVld () const |
|
float | GetMinTSVld () const |
|
void | SetTag (std::string s) |
|
std::string | GetTag () |
|
bool | Tag (std::string tn="", bool override=false) |
|
bool | Load () |
|
bool | Write (bool commit=true) |
|
void | ClearChanRowMap () |
|
void | FillChanRowMap () |
|
int | NVldRows (uint64_t channel) |
|
int | NVldChannels () |
|
std::vector< uint64_t > | VldChannels () |
|
nutools::dbi::Row * | GetVldRow (uint64_t channel, float t) |
|
std::vector< nutools::dbi::Row * > | GetVldRows (uint64_t channel) |
|
void | SetRecordTime (float t) |
|
void | ClearRecordTime () |
|
void | EnableFlushCache () |
|
void | DisableFlushCache () |
|
void | DisableCache () |
|
void | EnableCache () |
|
void | SetWSURL (std::string url) |
|
void | SetQEURL (std::string url) |
|
void | SetTimeQueries (bool f) |
|
void | SetTimeParsing (bool f) |
|
bool | TimeQueries () |
|
bool | TimeParsing () |
|
void | SetMinChannel (uint64_t chan) |
|
void | SetMaxChannel (uint64_t chan) |
|
void | SetChannelRange (uint64_t chan1, uint64_t chan2) |
|
void | PrintVMUsed () |
|
void | PrintPMUsed () |
|
bool | GetColsFromDB (std::vector< std::string > pkeyList={}) |
|
void | SetFolder (std::string f) |
|
std::string | Folder () |
|
Database Table Interface
- Author
- Jonathan Paley
- Version
- Id
- Table.h,v 1.61 2013/02/11 20:48:41 jpaley Exp
Definition at line 47 of file Table.h.