#include <sys_var.h>
Public Member Functions | |
| sys_var (const std::string &name_arg, sys_after_update_func func=NULL, sys_check_func check_func_arg=NULL) | |
| void | setName (const std::string &name_in) |
| const std::string & | getName () const |
| const std::vector< std::string > & | getAliases () const |
| struct option * | getOptionLimits () const |
| void | setOptionLimits (struct option *in_option_limits) |
| sys_after_update_func | getAfterUpdateTrigger () const |
| virtual bool | check (Session *session, set_var *var) |
| bool | check_enum (Session *session, set_var *var, const TYPELIB *enum_names) |
| virtual bool | update (Session *session, set_var *var)=0 |
| virtual void | set_default (Session *, sql_var_t) |
| virtual SHOW_TYPE | show_type () |
| virtual unsigned char * | value_ptr (Session *, sql_var_t)=0 |
| virtual bool | check_type (sql_var_t type) |
| virtual bool | check_update_type (Item_result type) |
| virtual bool | check_default (sql_var_t) |
| Item * | item (Session *, sql_var_t) |
| virtual bool | is_readonly () const |
Protected Attributes | |
| std::string | name |
| sys_check_func | check_func |
| sys_after_update_func | after_update |
| struct option * | option_limits |
| bool | m_allow_empty_value |
A class which represents a variable, either global or session-local.
| sys_after_update_func drizzled::sys_var::getAfterUpdateTrigger | ( | ) | const [inline] |
| const std::vector<std::string>& drizzled::sys_var::getAliases | ( | ) | const [inline] |
| const std::string& drizzled::sys_var::getName | ( | ) | const [inline] |
| struct option* drizzled::sys_var::getOptionLimits | ( | ) | const [inline, read] |
| Item * drizzled::sys_var::item | ( | Session * | session, |
| sql_var_t | var_type | ||
| ) |
Return an Item for a variable.
Used with @[global.]variable_name.
If type is not given, return local value if exists, else global.
Definition at line 798 of file sys_var.cc.
References drizzled::memory::Root::strdup().
| void drizzled::sys_var::setOptionLimits | ( | struct option * | in_option_limits | ) | [inline] |
sys_after_update_func drizzled::sys_var::after_update [protected] |
bool drizzled::sys_var::m_allow_empty_value [protected] |
std::string drizzled::sys_var::name [protected] |
struct option* drizzled::sys_var::option_limits [protected] |