[SF 2505290] DB connection as URI (MySQL not tested!)

This commit is contained in:
Aleksandar Fabijanic
2009-01-13 19:51:48 +00:00
parent 8abc90f989
commit b38f5ce99c
25 changed files with 199 additions and 47 deletions

View File

@@ -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