23 #include <drizzled/common_fwd.h>
24 #include <drizzled/identifier.h>
27 namespace identifier {
52 _user(to_string(user_arg))
55 virtual std::string getSQLPath()
const
57 return _user.empty() ?
"<no user>" : _user;
60 bool hasPassword()
const
62 return password_type != NONE;
65 const std::string& address()
const
70 void setAddress(
const char *newip)
75 const std::string& username()
const
80 void setUser(
const std::string &newuser)
85 PasswordType getPasswordType()
const
90 void setPasswordType(PasswordType newpassword_type)
92 password_type= newpassword_type;
95 const std::string& getPasswordContext()
const
97 return password_context;
100 void setPasswordContext(
const char *newpassword_context,
size_t size)
102 password_context.assign(newpassword_context, size);
106 PasswordType password_type;
108 std::string _address;
109 std::string password_context;