BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
DatabaseWorker.h File Reference

Asynchronous database worker abstraction. More...

#include "rigtorp/SPSCQueue.h"
#include <SQLiteCpp/SQLiteCpp.h>
#include <functional>
#include <string>
#include <thread>
Include dependency graph for DatabaseWorker.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  data::DatabaseWorker
 Executes database tasks asynchronously. More...
 

Namespaces

namespace  data
 

Detailed Description

Asynchronous database worker abstraction.

This worker accepts lambda tasks that operate on a SQLite::Database instance and executes them on a background thread. It provides a queue interface to submit database tasks without blocking the caller.