22#include <drizzled/plugin/authorization.h>
24#include <boost/program_options.hpp>
26namespace po= boost::program_options;
32namespace simple_user_policy
35std::string remap_dot_to;
37static int init(module::Context &context)
43static void init_options(drizzled::module::option_context &context)
45 context(
"remap-dot-to",
46 po::value<std::string>(&remap_dot_to)->default_value(
"."),
47 N_(
"Remap '.' to another character/string when controlling access to a schema. Useful for usernames that have a '.' in them. If a '.' is remapped to an underscore, you don't have to quote the schema name."));
57 "Monty Taylor, Stewart Smith",
58 N_(
"Authorization matching username to schema object name"),
60 simple_user_policy::init,
62 simple_user_policy::init_options
64DRIZZLE_DECLARE_PLUGIN_END;
TODO: Rename this file - func.h is stupid.
An Proxy Wrapper around boost::program_options::variables_map.