![]()  | 
  
    MySQL 8.4.7
    
   Source Code Documentation 
   | 
 
Rewrites the SHOW CREATE USER statement. More...
#include <sql_rewrite.h>
Public Member Functions | |
| Rewriter_show_create_user (THD *thd, Consumer_type type, const Rewrite_params *params) | |
| bool | rewrite (String &rlb) const override | 
| Rewrite the query for the SHOW CREATE USER statement.  More... | |
| void | rewrite_user_application_user_metadata (const LEX *lex, String *str) const override | 
| Overrides implementation of the the rewriter for user application user metadata.  More... | |
  Public Member Functions inherited from I_rewriter | |
| I_rewriter (THD *thd, Consumer_type type) | |
| virtual | ~I_rewriter () | 
| I_rewriter (const I_rewriter &)=delete | |
| const I_rewriter & | operator= (const I_rewriter &)=delete | 
| I_rewriter (const I_rewriter &&)=delete | |
| const I_rewriter & | operator= (const I_rewriter &&)=delete | 
| void | set_consumer_type (Consumer_type type) | 
| Reset the previous consumer type.  More... | |
| Consumer_type | consumer_type () | 
| Return the current consumer type set in the object.  More... | |
Protected Member Functions | |
| void | append_auth_str (LEX_USER *lex, String *str) const override | 
| A special rewriter override to make SHOW CREATE USER convert the string to hex if print_identified_with_as hex is on.  More... | |
  Protected Member Functions inherited from Rewriter_user | |
| Rewriter_user (THD *thd, Consumer_type target_type) | |
| void | rewrite_users (LEX *lex, String *str) const | 
| Fetch the users from user_list in LEX struct and append them to the String.  More... | |
| void | append_literal_secret (String *str) const | 
| Append the literal <secret> in place of password to the output string.  More... | |
| void | append_plugin_name (const LEX_USER *user, String *str) const | 
| Append the authentication plugin name for the user.  More... | |
| void | append_mfa_plugin_name (const LEX_MFA *user, String *str) const | 
| Append the authentication plugin name from LEX_MFA for the user.  More... | |
| void | append_mfa_auth_str (const LEX_MFA *user, String *str) const | 
| Append the authentication string from LEX_MFA for the user.  More... | |
| void | rewrite_in_memory_user_application_user_metadata (const LEX *user, String *str) const | 
| Use the LEX for reconstructing the ATTRIBUTE or COMMENT clause.  More... | |
Private Types | |
| using | parent = Rewriter_user | 
Private Member Functions | |
| void | append_user_auth_info (LEX_USER *user, bool comma, String *str) const override | 
| Append the authID, plugin name and suth str user to output string.  More... | |
| void | rewrite_password_history (const LEX *lex, String *str) const override | 
| Append the PASSWORD HISTORY clause for users.  More... | |
| void | rewrite_password_reuse (const LEX *lex, String *str) const override | 
| Append the PASSWORD REUSE clause for users.  More... | |
Private Attributes | |
| const Show_user_params * | show_params_ | 
Additional Inherited Members | |
  Protected Attributes inherited from I_rewriter | |
| THD *const | m_thd | 
| Consumer_type | m_consumer_type | 
Rewrites the SHOW CREATE USER statement.
      
  | 
  private | 
| Rewriter_show_create_user::Rewriter_show_create_user | ( | THD * | thd, | 
| Consumer_type | type, | ||
| const Rewrite_params * | params | ||
| ) | 
      
  | 
  overrideprotectedvirtual | 
A special rewriter override to make SHOW CREATE USER convert the string to hex if print_identified_with_as hex is on.
| [in] | user | LEX_USER to fetch the auth string of it. | 
| [in,out] | str | The string in which hash value is suffixed | 
Reimplemented from Rewriter_user.
      
  | 
  overrideprivatevirtual | 
Append the authID, plugin name and suth str user to output string.
| [in] | user | Lex user to fetch the info | 
| [in] | comma | separator to be prefixed while appending user info | 
| [in,out] | str | String to which user auth info is suffixed. | 
Implements Rewriter_user.
      
  | 
  overridevirtual | 
Rewrite the query for the SHOW CREATE USER statement.
This method takes an additional parameter from the Show_user_params to reconstruct the ATTRIBUTE clause. These parameters must be read form disk which is done in mysql_show_create_user()
| [in,out] | rlb | Buffer to return the rewritten query in. | 
| true | The query was rewritten. | 
Reimplemented from Rewriter_user.
      
  | 
  overrideprivatevirtual | 
Append the PASSWORD HISTORY clause for users.
| [in] | lex | LEX struct to check if clause is specified | 
| [in,out] | str | The string in which clause is suffixed | 
Implements Rewriter_user.
      
  | 
  overrideprivatevirtual | 
Append the PASSWORD REUSE clause for users.
| [in] | lex | LEX struct to check if clause is specified | 
| [in,out] | str | The string in which clause is suffixed | 
Implements Rewriter_user.
      
  | 
  overridevirtual | 
Overrides implementation of the the rewriter for user application user metadata.
This is needed because we have to read the ATTRIBUTE data from disk.
| [in] | lex | LEX struct to know if the clause was specified | 
| [in,out] | str | The string in which the clause is suffixed | 
Implements Rewriter_user.
      
  | 
  private |