1 #include "pybind11/pybind11.h" 5 namespace py = pybind11;
9 namespace persistence {
12 py::module mod(
"dbAuth");
14 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.
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.