- fixed broken 2010 projects

- session handle property for SQLite and ODBC
- SQLite database utility functions and test:
(1) loading from disk to memory
(2) saving from memory to disk
This commit is contained in:
Aleksandar Fabijanic
2012-03-22 03:02:08 +00:00
parent 1421d93684
commit 3df497d2bf
13 changed files with 519 additions and 377 deletions

View File

@@ -80,6 +80,18 @@ public:
static MetaColumn::ColumnDataType getColumnType(sqlite3_stmt* pStmt, std::size_t pos);
/// Returns column data type.
static bool fileToMemory(sqlite3* pInMemory, const std::string& fileName);
/// Loads the contents of a database file on disk into an opened
/// database in memory.
///
/// Returns true if succesful
static bool memoryToFile(const std::string& fileName, sqlite3* pInMemory);
/// Saves the contents of an opened database in memory to the
/// database on disk.
///
/// Returns true if succesful
private:
static TypeMap _types;
Poco::FastMutex _mutex;