CYCLUS
Public Member Functions | List of all members
cyclus::QueryableBackend Class Referenceabstract

Detailed Description

Interface implemented by backends that support rudimentary querying.

Definition at line 499 of file query_backend.h.

#include <query_backend.h>

Inheritance diagram for cyclus::QueryableBackend:
Inheritance graph
[legend]

Public Member Functions

virtual std::map< std::string, DbTypesColumnTypes (std::string table)=0
 
virtual QueryResult Query (std::string table, std::vector< Cond > *conds)=0
 
virtual std::list< ColumnInfoSchema (std::string table)=0
 
virtual std::set< std::string > Tables ()=0
 
virtual ~QueryableBackend ()
 

Constructor & Destructor Documentation

◆ ~QueryableBackend()

virtual cyclus::QueryableBackend::~QueryableBackend ( )
inlinevirtual

Definition at line 501 of file query_backend.h.

Member Function Documentation

◆ ColumnTypes()

virtual std::map<std::string, DbTypes> cyclus::QueryableBackend::ColumnTypes ( std::string  table)
pure virtual

Return a map of column names of the specified table to the associated database type.

Implemented in cyclus::PrefixInjector, cyclus::CondInjector, cyclus::Hdf5Back, and cyclus::SqliteBack.

◆ Query()

virtual QueryResult cyclus::QueryableBackend::Query ( std::string  table,
std::vector< Cond > *  conds 
)
pure virtual

Return a set of rows from the specificed table that match all given conditions.

Conditions are AND'd together. conds may be NULL.

Implemented in cyclus::PrefixInjector, cyclus::CondInjector, cyclus::Hdf5Back, and cyclus::SqliteBack.

◆ Schema()

virtual std::list<ColumnInfo> cyclus::QueryableBackend::Schema ( std::string  table)
pure virtual

Return information about all columns of a table.

Implemented in cyclus::PrefixInjector, cyclus::CondInjector, and cyclus::Hdf5Back.

◆ Tables()

virtual std::set<std::string> cyclus::QueryableBackend::Tables ( )
pure virtual

Return a set of all table names currently in the database.

Implemented in cyclus::PrefixInjector, cyclus::CondInjector, cyclus::Hdf5Back, and cyclus::SqliteBack.


The documentation for this class was generated from the following file: