mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
[SF 2505290] DB connection as URI (MySQL not tested!)
This commit is contained in:
@@ -86,11 +86,14 @@ public:
|
||||
bool isTransaction();
|
||||
/// Returns true iff a transaction is in progress.
|
||||
|
||||
const std::string& connectorName();
|
||||
/// Returns the name of the connector.
|
||||
|
||||
private:
|
||||
void open();
|
||||
/// Opens a connection to the Database.
|
||||
|
||||
std::string _dbFileName;
|
||||
std::string _connector;
|
||||
sqlite3* _pDB;
|
||||
bool _connected;
|
||||
bool _isTransaction;
|
||||
@@ -110,6 +113,12 @@ inline bool SessionImpl::isTransaction()
|
||||
}
|
||||
|
||||
|
||||
inline const std::string& SessionImpl::connectorName()
|
||||
{
|
||||
return _connector;
|
||||
}
|
||||
|
||||
|
||||
} } } // namespace Poco::Data::SQLite
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user