public

Inheritance Graph

graph BT
	DBHandle
	click DBHandle "classUtil_1_1DBFSProvider_1_1DBHandle"

Description

Internal representation of a database connection

Public Functions

   
   
  DBHandle(sqlite3 * _db)
   
  ~DBHandle()
   
sqlite3 * getDB() const
   
bool saveFile(const std::string & folder, const std::string & file, const std::vector< uint8_t > & data, bool overwrite)
   
std::vector< uint8_t > readFile(const std::string & folder, const std::string & file)
   
size_t getSize(const std::string & folder, const std::string & file)
   
bool dir(const std::string & folder, const std::string & prefix, std::list< FileName > & result, uint8_t flags)
   
int getFolderId(const std::string & folder)
   
bool isFile(const std::string & folder, const std::string & file)
   
bool makeDir(const std::string & folder)
   
void flush()

Protected Functions

   
   
bool createFile(int folderId, const std::string & file)
   
bool updateData(int fileId, const std::vector< uint8_t > & data)
   
std::vector< uint8_t > getData(int fileId)
   
void storeStatement(int folderId, const std::string & file, sqlite3_stmt * stmt)
   
bool isPendingFile(int intFolderId, const std::string & file)

Documentation

function
Util::DBFSProvider::DBHandle::DBHandle

public explicit
     
     
DBHandle( sqlite3 * _db )

Defined in Util/IO/DBFSProvider.h:63


function
Util::DBFSProvider::DBHandle::~DBHandle

public
   
   
~DBHandle( )

Defined in Util/IO/DBFSProvider.h:64


function
Util::DBFSProvider::DBHandle::getDB

public const inline
   
   
sqlite3 * getDB( ) const

Defined in Util/IO/DBFSProvider.h:65


function
Util::DBFSProvider::DBHandle::saveFile

public
     
     
bool saveFile( const std::string & folder,
  const std::string & file,
  const std::vector< uint8_t > & data,
  bool overwrite
)    

Defined in Util/IO/DBFSProvider.h:68


function
Util::DBFSProvider::DBHandle::readFile

public
     
     
std::vector< uint8_t > readFile( const std::string & folder,
  const std::string & file
)    

Defined in Util/IO/DBFSProvider.h:69


function
Util::DBFSProvider::DBHandle::getSize

public
     
     
size_t getSize( const std::string & folder,
  const std::string & file
)    

Defined in Util/IO/DBFSProvider.h:70


function
Util::DBFSProvider::DBHandle::dir

public
     
     
bool dir( const std::string & folder,
  const std::string & prefix,
  std::list< FileName > & result,
  uint8_t flags
)    

Defined in Util/IO/DBFSProvider.h:71


function
Util::DBFSProvider::DBHandle::getFolderId

public
     
     
int getFolderId( const std::string & folder )

Defined in Util/IO/DBFSProvider.h:72


function
Util::DBFSProvider::DBHandle::isFile

public
     
     
bool isFile( const std::string & folder,
  const std::string & file
)    

Defined in Util/IO/DBFSProvider.h:73


function
Util::DBFSProvider::DBHandle::makeDir

public
     
     
bool makeDir( const std::string & folder )

Defined in Util/IO/DBFSProvider.h:74


function
Util::DBFSProvider::DBHandle::flush

public
   
   
void flush( )

Defined in Util/IO/DBFSProvider.h:76


function
Util::DBFSProvider::DBHandle::createFile

protected
     
     
bool createFile( int folderId,
  const std::string & file
)    

Defined in Util/IO/DBFSProvider.h:78


function
Util::DBFSProvider::DBHandle::updateData

protected
     
     
bool updateData( int fileId,
  const std::vector< uint8_t > & data
)    

Defined in Util/IO/DBFSProvider.h:79


function
Util::DBFSProvider::DBHandle::getData

protected
     
     
std::vector< uint8_t > getData( int fileId )

Defined in Util/IO/DBFSProvider.h:80


function
Util::DBFSProvider::DBHandle::storeStatement

protected
     
     
void storeStatement( int folderId,
  const std::string & file,
  sqlite3_stmt * stmt
)    

Defined in Util/IO/DBFSProvider.h:82


function
Util::DBFSProvider::DBHandle::isPendingFile

protected
     
     
bool isPendingFile( int intFolderId,
  const std::string & file
)    

Defined in Util/IO/DBFSProvider.h:83