SQLamarr
The stand-alone ultra-fast simulation option for the LHCb experiment
EditEventStore.h
1 // (c) Copyright 2022 CERN for the benefit of the LHCb Collaboration.
2 //
3 // This software is distributed under the terms of the GNU General Public
4 // Licence version 3 (GPL Version 3), copied verbatim in the file "LICENCE".
5 //
6 // In applying this licence, CERN does not waive the privileges and immunities
7 // granted to it by virtue of its status as an Intergovernmental Organization
8 // or submit itself to any jurisdiction.
9 
10 #pragma once
11 
12 // STL
13 #include <string>
14 #include <vector>
15 
16 // SQLamarr
17 #include "SQLamarr/BaseSqlInterface.h"
18 #include "SQLamarr/Transformer.h"
19 
20 namespace SQLamarr
21 {
34  {
35  public:
38  SQLite3DB& db,
40  const std::vector<std::string>& queries
42  );
43 
44 
46  void execute () override;
47 
48  private:
49  const std::vector<std::string> m_queries;
50  };
51 }
52 
Abstract interface with helper functions to access an SQLite DB.
Execute a transaction with multiple custom queries without returning any output.
EditEventStore(SQLite3DB &db, const std::vector< std::string > &queries)
Constructor.
void execute() override
Execute the algorithm, cleaning the database.
Interface to an executable class used for polymorphism.
Definition: Transformer.h:17
A database connection handler easying sharing the DB between C++ and Python.
Definition: db_functions.py:24