store sellers with state == NEW
This commit is contained in:
parent
ddfb9471a8
commit
976dcbcbeb
2 changed files with 54 additions and 2 deletions
|
@ -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_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue