1 #include "pybind11/pybind11.h" 9 namespace persistence {
12 py::class_<DbAuth>
cls(mod,
"DbAuth");
Interface for DbAuth class.
static bool available(std::string const &host, std::string const &port)
Determine whether an authenticator string is available for database access.
static void setPolicy(lsst::pex::policy::Policy::Ptr policy)
Set the authenticator Policy.
A base class for image defects.
static void resetPolicy()
Set the authenticator Policy back to null.
static std::string authString(std::string const &host, std::string const &port)
Get the authenticator string for a database.
static std::string username(std::string const &host, std::string const &port)
Get the username to use to authenticate to a database.
static std::string password(std::string const &host, std::string const &port)
Get the password to use to authenticate to a database.
PYBIND11_MODULE(dbAuth, mod)