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
Defined in Util/IO/DBFSProvider.h:63
function
Util::DBFSProvider::DBHandle::~DBHandle
Defined in Util/IO/DBFSProvider.h:64
function
Util::DBFSProvider::DBHandle::getDB
Defined in Util/IO/DBFSProvider.h:65
function
Util::DBFSProvider::DBHandle::saveFile
|
|
|
|
|
|
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
|
|
|
|
|
|
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
|
|
|
|
|
|
size_t getSize( |
const std::string & |
folder, |
|
const std::string & |
file |
) |
|
|
Defined in Util/IO/DBFSProvider.h:70
function
Util::DBFSProvider::DBHandle::dir
|
|
|
|
|
|
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
Defined in Util/IO/DBFSProvider.h:72
function
Util::DBFSProvider::DBHandle::isFile
|
|
|
|
|
|
bool isFile( |
const std::string & |
folder, |
|
const std::string & |
file |
) |
|
|
Defined in Util/IO/DBFSProvider.h:73
function
Util::DBFSProvider::DBHandle::makeDir
|
|
|
|
|
|
bool makeDir( |
const std::string & |
folder ) |
Defined in Util/IO/DBFSProvider.h:74
function
Util::DBFSProvider::DBHandle::flush
Defined in Util/IO/DBFSProvider.h:76
function
Util::DBFSProvider::DBHandle::createFile
|
|
|
|
|
|
bool createFile( |
int |
folderId, |
|
const std::string & |
file |
) |
|
|
Defined in Util/IO/DBFSProvider.h:78
function
Util::DBFSProvider::DBHandle::updateData
|
|
|
|
|
|
bool updateData( |
int |
fileId, |
|
const std::vector< uint8_t > & |
data |
) |
|
|
Defined in Util/IO/DBFSProvider.h:79
function
Util::DBFSProvider::DBHandle::getData
|
|
|
|
|
|
std::vector< uint8_t > getData( |
int |
fileId ) |
Defined in Util/IO/DBFSProvider.h:80
function
Util::DBFSProvider::DBHandle::storeStatement
|
|
|
|
|
|
void storeStatement( |
int |
folderId, |
|
const std::string & |
file, |
|
sqlite3_stmt * |
stmt |
) |
|
|
Defined in Util/IO/DBFSProvider.h:82
function
Util::DBFSProvider::DBHandle::isPendingFile
Defined in Util/IO/DBFSProvider.h:83