GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
GCW::Dbo::AbstractSession Class Reference

#include <AbstractSession.h>

+ Inheritance diagram for GCW::Dbo::AbstractSession:

Public Member Functions

 AbstractSession ()
 
auto open (const std::string &_path) -> bool
 Open a database.
 
auto path () const -> const std::string &
 
auto isOpen () const -> bool
 
- Public Member Functions inherited from Wt::Dbo::Session
 Session ()
 
virtual ~Session ()
 
void setConnection (std::unique_ptr< SqlConnection > connection)
 
void setConnectionPool (SqlConnectionPool &pool)
 
void mapClass (const char *tableName)
 
const chartableName () const
 
const std::string tableNameQuoted () const
 
ptr< Cadd (ptr< C > &ptr)
 
ptr< Cadd (std::unique_ptr< C > obj)
 
ptr< TaddNew (Args &&...args)
 
ptr< Cload (const typename dbo_traits< C >::IdType &id, bool forceReread=false)
 
ptr< CloadLazy (const typename dbo_traits< C >::IdType &id)
 
Query< ptr< C >, BindStrategyfind (const std::string &condition=std::string())
 
Query< Result, BindStrategyquery (const std::string &sql)
 
Call execute (const std::string &sql)
 
void createTables ()
 
std::string tableCreationSql ()
 
void dropTables ()
 
void flush ()
 
void rereadAll (const char *tableName=nullptr)
 
void discardUnflushed ()
 
FlushMode flushMode ()
 
void setFlushMode (FlushMode mode)
 

Protected Attributes

std::string m_path
 
bool m_isOpen = false
 

Detailed Description

Definition at line 11 of file AbstractSession.h.

Constructor & Destructor Documentation

◆ AbstractSession()

GCW::Dbo::AbstractSession::AbstractSession ( )
inline

Definition at line 16 of file AbstractSession.h.

Member Function Documentation

◆ isOpen()

auto GCW::Dbo::AbstractSession::isOpen ( ) const -> bool
inline

Definition at line 26 of file AbstractSession.h.

References m_isOpen.

Referenced by GCW::Dbo::GnuCashew::Session::open().

◆ open()

auto GCW::Dbo::AbstractSession::open ( const std::string &  _path) -> bool

Open a database.

Definition at line 27 of file AbstractSession.cpp.

Referenced by GCW::Dbo::GnuCashew::Session::open().

◆ path()

auto GCW::Dbo::AbstractSession::path ( ) const -> const std::string &
inline

Definition at line 24 of file AbstractSession.h.

References m_path.

Member Data Documentation

◆ m_isOpen

bool GCW::Dbo::AbstractSession::m_isOpen = false
protected

Definition at line 33 of file AbstractSession.h.

Referenced by isOpen(), and GCW::Dbo::GnuCashew::Session::open().

◆ m_path

std::string GCW::Dbo::AbstractSession::m_path
protected

Definition at line 32 of file AbstractSession.h.

Referenced by path().


The documentation for this class was generated from the following files: