38 # define __attribute__(x)
44 #include <boost/regex.hpp>
51 namespace persistence {
56 lsst::daf::base::Citizen(typeid(*this)),
57 _dbType(), _hostname(), _port(), _username(), _password(), _dbName() {
65 lsst::daf::base::Citizen(typeid(*this)) {
68 expression(
"(\\w+)://(\\S+):(\\d+)/(\\S+)");
69 if (boost::regex_match(url, what, expression)) {
78 throw LSST_EXCEPT(lsst::pex::exceptions::InvalidParameterError,
79 "Unparseable connection string passed to DbStorageLocation: " +
Interface for DbAuth class.
virtual std::string toString(void) const
std::string _dbType
Database type (e.g. "mysql").
virtual std::string const & getPort(void) const
virtual std::string const & getDbType(void) const
virtual std::string getConnString(void) const
virtual ~DbStorageLocation(void)
virtual std::string const & getPassword(void) const
virtual std::string const & getHostname(void) const
#define LSST_EXCEPT(type,...)
static std::string username(std::string const &host, std::string const &port)
static std::string password(std::string const &host, std::string const &port)
std::string _dbName
Database (not server) name.
virtual std::string const & getDbName(void) const
virtual std::string const & getUsername(void) const
Include files required for standard LSST Exception handling.
Interface for DbStorageLocation class.