17 lines
488 B
C
17 lines
488 B
C
|
#ifndef __BLOGSESSION_H__
|
||
|
#define __BLOGSESSION_H__
|
||
|
|
||
|
#include "BlogUserDatabase.h"
|
||
|
#include <Wt/Dbo/Session.h>
|
||
|
#include <Wt/Dbo/backend/Sqlite3.h>
|
||
|
|
||
|
class BlogSession : public Wt::Dbo::Session {
|
||
|
public:
|
||
|
BlogSession(Wt::Dbo::SqlConnectionPool &connectionPool);
|
||
|
static std::unique_ptr<Wt::Dbo::SqlConnectionPool> createConnectionPool(const std::string &sqlite3);
|
||
|
|
||
|
private:
|
||
|
Wt::Dbo::SqlConnectionPool &m_connectionPool;
|
||
|
BlogUserDatabase m_users;
|
||
|
};
|
||
|
#endif // __BLOGSESSION_H__
|