PDatabaseStore Class Reference

Detailed Description

The PDatabaseStore class is a PStore with a database backend (either SQLite or Postgres) (a container to store an heterogeneous collection of Papillon objects into a database).

Definition at line 29 of file PDatabaseStore.h.

#include <PDatabaseStore.h>

Constructor & Destructor Documentation

◆ PDatabaseStore()

PDatabaseStore::PDatabaseStore ( const PDatabaseStore other)

Constructs a shared copy of other.

◆ ~PDatabaseStore()

virtual PDatabaseStore::~PDatabaseStore ( )
virtual

Destroys this object.

Member Function Documentation

◆ GetDatabase()

PSqlDatabase PDatabaseStore::GetDatabase ( ) const

Returns the database connection used to access this store.

◆ Open() [1/2]

static PResult PDatabaseStore::Open ( const PString dbName,
PStore store 
)
static

Opens the specified SQLite database storage.

Returns PResult::C_OK if success, another result otherwise.

◆ Open() [2/2]

static PResult PDatabaseStore::Open ( const PString dbHost,
papillon::int32  dbPort,
const PString dbName,
const PString username,
const PString password,
PStore store 
)
static

Opens the specified database storage.

Returns PResult::C_OK if success, another result otherwise.

◆ operator=()

PDatabaseStore& PDatabaseStore::operator= ( const PDatabaseStore other)

Performs a shared copy of other to this object.