#include <mysql_thd_store_imp.h>
◆ get()
Get handle to an already stored object without removing it. 
- Parameters
 - 
  
    | [in] | thd | Session handle. If NULL, current session will be used.  | 
    | [in] | slot | Key used to identify the object handle | 
  
   
- Returns
 - handle to the object if found, nullptr otherwise 
 
 
 
◆ register_slot()
Register a slot to store data specific to a component. 
The free_resource callback is used to free the stored pointer before thd is destroyed
- Parameters
 - 
  
    | [in] | name | Implementation name  | 
    | [in] | free_fn | Callback to free resource stored in the slot  | 
    | [out] | slot | Key used to identify the object handle | 
  
   
- Returns
 - status of registration 
 
- Return values
 - 
  
    | false | Success  | 
    | true | Error. This typically means all slots are full  | 
  
   
 
 
◆ set()
Adds an opaque pointer to the session object. 
- Parameters
 - 
  
    | [in] | thd | Session handle. If NULL, current session will be used.  | 
    | [in] | slot | Key used to identify the object handle  | 
    | [in] | object | Handle of the object being stored. If NULL, it will be considered removal. | 
  
   
- Returns
 - Status of the operation 
 
- Return values
 - 
  
  
 
 
 
◆ unregister_slot()
Unregister a slot. 
- Parameters
 - 
  
    | [in,out] | slot | Key allocated to component | 
  
   
- Returns
 - status of operation 
 
- Return values
 - 
  
  
 
 
 
The documentation for this class was generated from the following files: