CYCLUS
|
Wrapper class for QueryableBackends that injects prefix in front of the title/table for every query before being executed.
A query to the "MyAgentTable" table will actually be passed to the wrapped backend as [prefix] + "MyAgentTable".
Definition at line 562 of file query_backend.h.
#include <query_backend.h>
Public Member Functions | |
virtual std::map< std::string, DbTypes > | ColumnTypes (std::string table) |
PrefixInjector (QueryableBackend *b, std::string prefix) | |
virtual QueryResult | Query (std::string table, std::vector< Cond > *conds) |
virtual std::list< ColumnInfo > | Schema (std::string table) |
virtual std::set< std::string > | Tables () |
Public Member Functions inherited from cyclus::QueryableBackend | |
virtual | ~QueryableBackend () |
|
inline |
Definition at line 564 of file query_backend.h.
|
inlinevirtual |
Return a map of column names of the specified table to the associated database type.
Implements cyclus::QueryableBackend.
Definition at line 572 of file query_backend.h.
|
inlinevirtual |
Return a set of rows from the specificed table that match all given conditions.
Conditions are AND'd together. conds may be NULL.
Implements cyclus::QueryableBackend.
Definition at line 568 of file query_backend.h.
|
inlinevirtual |
Return information about all columns of a table.
Implements cyclus::QueryableBackend.
Definition at line 576 of file query_backend.h.
|
inlinevirtual |
Return a set of all table names currently in the database.
Implements cyclus::QueryableBackend.
Definition at line 580 of file query_backend.h.