Class for storing chunks in various databases.
More...
#include <chunk_integrations.hpp>
Class for storing chunks in various databases.
Definition at line 39 of file chunk_integrations.hpp.
◆ DatabaseChunkStore()
| chunk_integrations::DatabaseChunkStore::DatabaseChunkStore |
( |
std::unique_ptr< DatabaseConnection > |
connection, |
|
|
const std::string & |
table_name |
|
) |
| |
Constructor.
- Parameters
-
| connection | Database connection instance |
| table_name | Target table name |
◆ store_chunks_mongodb()
template<typename T >
| void chunk_integrations::DatabaseChunkStore::store_chunks_mongodb |
( |
const std::vector< std::vector< T > > & |
chunks | ) |
|
Store chunks in MongoDB database.
- Template Parameters
-
| T | Data type of chunk elements |
- Parameters
-
| chunks | Vector of chunks to store |
- Exceptions
-
| std::runtime_error | if storage fails |
◆ store_chunks_postgres()
template<typename T >
| void chunk_integrations::DatabaseChunkStore::store_chunks_postgres |
( |
const std::vector< std::vector< T > > & |
chunks | ) |
|
Store chunks in PostgreSQL database.
- Template Parameters
-
| T | Data type of chunk elements |
- Parameters
-
| chunks | Vector of chunks to store |
- Exceptions
-
| std::runtime_error | if storage fails |
◆ db_connection
◆ table
| std::string chunk_integrations::DatabaseChunkStore::table |
|
private |
The documentation for this class was generated from the following file: