mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
init session db class
This commit is contained in:
parent
814b25a946
commit
7a04fb8920
6 changed files with 65 additions and 1 deletions
26
src/lib/database/session.hpp
Normal file
26
src/lib/database/session.hpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef LIB_DATABASE_SESSION_H
|
||||
#define LIB_DATABASE_SESSION_H
|
||||
|
||||
#include <sqlite3.h>
|
||||
|
||||
namespace lib::database
|
||||
{
|
||||
class Session
|
||||
{
|
||||
private:
|
||||
|
||||
int status;
|
||||
|
||||
char * error;
|
||||
|
||||
sqlite3 * connection;
|
||||
|
||||
public:
|
||||
|
||||
Session(
|
||||
sqlite3 * connection
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
#endif // LIB_DATABASE_SESSION_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue