![]() |
MySQL
8.0.23
Source Code Documentation
|
A rule as persisted on disk. More...
#include <persisted_rule.h>
Public Member Functions | |
Persisted_rule (rts::Cursor *c) | |
Constructs a Persisted_rule object that copies all data into the current heap. More... | |
void | set_message (const std::string &message_arg) |
Convenience function, may be called with a const char*. More... | |
void | set_pattern_digest (const std::string &s) |
Convenience function, may be called with a const char*. More... | |
void | set_normalized_pattern (const std::string &s) |
Convenience function, may be called with a const char*. More... | |
bool | write_to (rts::Cursor *c) |
Writes the values in this Persisted_rule to the table at the row pointed to by the cursor. More... | |
Public Attributes | |
Mysql::Nullable< std::string > | pattern |
The rewrite rule's pattern string. More... | |
Mysql::Nullable< std::string > | pattern_db |
The pattern's current database. More... | |
Mysql::Nullable< std::string > | replacement |
The rewrite rule's replacement string. More... | |
bool | is_enabled |
True if the rule is enabled. More... | |
Mysql::Nullable< std::string > | message |
The plugin's message, write-only. More... | |
Mysql::Nullable< std::string > | pattern_digest |
The pattern's digest, write-only. More... | |
Mysql::Nullable< std::string > | normalized_pattern |
The normalized pattern, write-only. More... | |
Private Member Functions | |
void | copy_and_set (Mysql::Nullable< std::string > *property, rts::Cursor *c, int colno) |
Reads from a Cursor and writes to a property of type Nullable<string> after forcing a copy of the string buffer. More... | |
void | set_if_present (rts::Cursor *cursor, rts::Cursor::column_id column, Mysql::Nullable< std::string > value) |
Writes a string value to the cursor's column if it exists. More... | |
A rule as persisted on disk.
|
inlineexplicit |
Constructs a Persisted_rule object that copies all data into the current heap.
The interface is constructed this way due to on some OS'es (e.g. Windows), every shared library has its own heap.
|
inlineprivate |
Reads from a Cursor and writes to a property of type Nullable<string> after forcing a copy of the string buffer.
The function calls a member function in Cursor that is located in the server's dynamic library.
|
inlineprivate |
Writes a string value to the cursor's column if it exists.
|
inline |
Convenience function, may be called with a const char*.
|
inline |
Convenience function, may be called with a const char*.
|
inline |
Convenience function, may be called with a const char*.
|
inline |
Writes the values in this Persisted_rule to the table at the row pointed to by the cursor.
Values that don't have a corresponding column in the table will be ignored.
bool Persisted_rule::is_enabled |
True if the rule is enabled.
Mysql::Nullable<std::string> Persisted_rule::message |
The plugin's message, write-only.
Mysql::Nullable<std::string> Persisted_rule::normalized_pattern |
The normalized pattern, write-only.
Mysql::Nullable<std::string> Persisted_rule::pattern |
The rewrite rule's pattern string.
Mysql::Nullable<std::string> Persisted_rule::pattern_db |
The pattern's current database.
Mysql::Nullable<std::string> Persisted_rule::pattern_digest |
The pattern's digest, write-only.
Mysql::Nullable<std::string> Persisted_rule::replacement |
The rewrite rule's replacement string.