MySQL 8.4.0
Source Code Documentation
Srs_fetcher Class Reference

#include <srs_fetcher.h>

Public Member Functions

 Srs_fetcher (THD *thd)
 
bool acquire (gis::srid_t srid, const dd::Spatial_reference_system **srs)
 Acquire an SRS from the data dictionary. More...
 
bool acquire_for_modification (gis::srid_t srid, dd::Spatial_reference_system **srs)
 Acquire an SRS from the data dictionary with the intent of modifying it. More...
 

Static Public Member Functions

static bool srs_exists (THD *thd, gis::srid_t srid, bool *exists)
 

Private Member Functions

bool lock (gis::srid_t srid, enum_mdl_type lock_type)
 Take an MDL lock on an SRID. More...
 

Private Attributes

THDm_thd
 

Constructor & Destructor Documentation

◆ Srs_fetcher()

Srs_fetcher::Srs_fetcher ( THD thd)
inline

Member Function Documentation

◆ acquire()

bool Srs_fetcher::acquire ( gis::srid_t  srid,
const dd::Spatial_reference_system **  srs 
)

Acquire an SRS from the data dictionary.

Take a shared read lock on the SRID.

Parameters
[in]sridSpatial reference system ID
[out]srsThe spatial reference system
Return values
falseSuccess.
trueLocking failed. An error has already been flagged.

◆ acquire_for_modification()

bool Srs_fetcher::acquire_for_modification ( gis::srid_t  srid,
dd::Spatial_reference_system **  srs 
)

Acquire an SRS from the data dictionary with the intent of modifying it.

Take an exclusive lock on the SRID.

Parameters
[in]sridSpatial reference system ID
[out]srsThe spatial reference system
Return values
falseSuccess.
trueLocking failed. An error has already been flagged.

◆ lock()

bool Srs_fetcher::lock ( gis::srid_t  srid,
enum_mdl_type  lock_type 
)
private

Take an MDL lock on an SRID.

Parameters
[in]sridSpatial reference system ID
[in]lock_typeType of lock to take
Return values
falseSuccess.
trueLocking failed. An error has already been flagged.

◆ srs_exists()

bool Srs_fetcher::srs_exists ( THD thd,
gis::srid_t  srid,
bool *  exists 
)
static

Member Data Documentation

◆ m_thd

THD* Srs_fetcher::m_thd
private

The documentation for this class was generated from the following files: