6 namespace persistency {
13 return existsTable( m_schema,
tname );
19 for (
auto row : q ) {}
21 return q.retrievedRows();
26 boost::posix_time::ptime& snapshotTime ){
34 for (
auto row : q ) std::tie( validity ) = row;
36 return q.retrievedRows();
43 boost::posix_time::ptime& snapshotTime ){
51 for (
auto row : q ) std::tie( validity, description, release ) = row;
52 return q.retrievedRows();
59 const boost::posix_time::ptime& snapshotTime,
60 const boost::posix_time::ptime& insertionTime ){
62 dataToInsert( std::tie( name, validity, description, release, snapshotTime, insertionTime ) );
63 insertInTable( m_schema,
tname, dataToInsert.
get() );
70 const boost::posix_time::ptime& snapshotTime,
71 const boost::posix_time::ptime& insertionTime ){
75 updateTable( m_schema,
tname, buffer );
83 return existsTable( m_schema,
tname );
87 std::vector<std::tuple<std::string,std::string,std::string> >&
tags ){
92 for (
auto row : q ) {
93 if ( std::get<1>(row) ==
"-" ) {
94 std::get<1>(row) =
"";
96 tags.push_back( row );
98 return q.retrievedRows();
102 std::vector<std::tuple<std::string,std::string,std::string> >&
tags ){
107 const std::vector<std::tuple<std::string,std::string,std::string> >&
tags ){
109 for(
auto row :
tags ) inserter.
insert( std::tuple_cat( std::tie( gtName ),row ) );
115 m_gtMapTable( schema ){
bool select(const std::string &name)
GLOBAL_TAG::Table & gtTable()
static char const * tname
GLOBAL_TAG::Table m_gtTable
void insert(const P ¶ms)
GTSchema(coral::ISchema &schema)
unsigned long long Time_t
void addCondition(const T &value, const std::string condition="=")
const coral::AttributeList & get() const
void addOrderClause(bool ascending=true)
void insert(const std::string &name, cond::Time_t validity, const std::string &description, const std::string &release, const boost::posix_time::ptime &snapshotTime, const boost::posix_time::ptime &insertionTime)
GLOBAL_TAG_MAP::Table & gtMapTable()
void setColumnData(const Params ¶ms)
Table(coral::ISchema &schema)
void insert(const std::string >Name, const std::vector< std::tuple< std::string, std::string, std::string > > &tags)
static char const * tname
GLOBAL_TAG_MAP::Table m_gtMapTable
void update(const std::string &name, cond::Time_t validity, const std::string &description, const std::string &release, const boost::posix_time::ptime &snapshotTime, const boost::posix_time::ptime &insertionTime)
bool select(const std::string >Name, std::vector< std::tuple< std::string, std::string, std::string > > &tags)
Table(coral::ISchema &schema)
void addWhereCondition(const P ¶m, const std::string condition="=")