store sellers with state == NEW

This commit is contained in:
Martin Brodbeck 2018-07-11 15:58:09 +02:00
parent ddfb9471a8
commit 976dcbcbeb
2 changed files with 54 additions and 2 deletions

View file

@ -1,6 +1,8 @@
#ifndef DATABASE_H
#define DATABASE_H
#include "seller.h"
#include <string>
#include <sqlite3.h>
@ -14,6 +16,7 @@ public:
Database& operator=(const Database&) = delete;
void exec(const std::string& sql);
void init();
unsigned int storeSellers(std::vector<Seller>& sellers);
private:
sqlite3 *db_;
std::string dbname_;