mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
- 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:
@@ -112,6 +112,10 @@ public:
|
||||
&AbstractSessionImpl<C>::setStorage,
|
||||
&AbstractSessionImpl<C>::getStorage);
|
||||
|
||||
addProperty("handle",
|
||||
&AbstractSessionImpl<C>::setHandle,
|
||||
&AbstractSessionImpl<C>::getHandle);
|
||||
|
||||
addFeature("bulk",
|
||||
&AbstractSessionImpl<C>::setBulk,
|
||||
&AbstractSessionImpl<C>::getBulk);
|
||||
@@ -208,6 +212,18 @@ public:
|
||||
return _storage;
|
||||
}
|
||||
|
||||
void setHandle(const std::string& name, const Poco::Any& handle)
|
||||
/// Sets the native session handle.
|
||||
{
|
||||
_handle = handle;
|
||||
}
|
||||
|
||||
Poco::Any getHandle(const std::string& name="")
|
||||
/// Returns the native session handle.
|
||||
{
|
||||
return _handle;
|
||||
}
|
||||
|
||||
void setBulk(const std::string& name, bool bulk)
|
||||
/// Sets the execution type.
|
||||
{
|
||||
@@ -308,6 +324,7 @@ private:
|
||||
bool _bulk;
|
||||
bool _emptyStringIsNull;
|
||||
bool _forceEmptyString;
|
||||
Poco::Any _handle;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user