CYCLUS
Loading...
Searching...
No Matches
cyclus::QueryableBackend Class Referenceabstract

Detailed Description

Interface implemented by backends that support rudimentary querying.

Definition at line 498 of file query_backend.h.

#include <query_backend.h>

Inheritance diagram for cyclus::QueryableBackend:
cyclus::CondInjector cyclus::FullBackend cyclus::PrefixInjector cyclus::Hdf5Back cyclus::SqliteBack

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 500 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::Hdf5Back, cyclus::CondInjector, cyclus::PrefixInjector, 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::Hdf5Back, cyclus::CondInjector, cyclus::PrefixInjector, 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::Hdf5Back, cyclus::CondInjector, and cyclus::PrefixInjector.

◆ 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::Hdf5Back, cyclus::CondInjector, cyclus::PrefixInjector, and cyclus::SqliteBack.


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