![]()  | 
  
    MySQL 8.0.44
    
   Source Code Documentation 
   | 
 
The in-memory representation of a pattern. More...
#include <rule.h>
Public Types | |
| enum | Load_status { OK , PARSE_ERROR , NOT_SUPPORTED_STATEMENT , NO_DIGEST } | 
Public Member Functions | |
| Load_status | load (MYSQL_THD thd, const Persisted_rule *diskrule) | 
| Loads the pattern.  More... | |
| std::string | parse_error_message () | 
| If any errors were raised during parsing, the first one is available here.  More... | |
Public Attributes | |
| int | number_parameters | 
| std::string | normalized_pattern | 
| The pattern in normalized form.  More... | |
| services::Digest | digest | 
| The digest obtained from the pattern.  More... | |
| std::vector< std::string > | literals | 
Private Attributes | |
| std::string | m_parse_error_message | 
The in-memory representation of a pattern.
| enum Pattern::Load_status | 
| Pattern::Load_status Pattern::load | ( | MYSQL_THD | thd, | 
| const Persisted_rule * | diskrule | ||
| ) | 
Loads the pattern.
The pattern string is copied in deep-copy way. This is not done in the CTOR because of the memory allocation.
This function does the following:
| false | Success. | 
| true | Either parse error, the pattern is not a select statement or out of memory. | 
      
  | 
  inline | 
If any errors were raised during parsing, the first one is available here.
| services::Digest Pattern::digest | 
The digest obtained from the pattern.
| std::vector<std::string> Pattern::literals | 
      
  | 
  private | 
| std::string Pattern::normalized_pattern | 
The pattern in normalized form.
| int Pattern::number_parameters |