MySQL 8.0.39
Source Code Documentation
fts0config.cc File Reference

Full Text Search configuration table. More...

#include <stdlib.h>
#include "fts0priv.h"
#include "row0sel.h"
#include "trx0roll.h"

Functions

static bool fts_config_fetch_value (void *row, void *user_arg)
 Callback function for fetching the config value. More...
 
dberr_t fts_config_get_value (trx_t *trx, fts_table_t *fts_table, const char *name, fts_string_t *value)
 Get value from the config table. More...
 
char * fts_config_create_index_param_name (const char *param, const dict_index_t *index)
 Create the config table name for retrieving index specific value. More...
 
dberr_t fts_config_get_index_value (trx_t *trx, dict_index_t *index, const char *param, fts_string_t *value)
 Get value specific to an FTS index from the config table. More...
 
dberr_t fts_config_set_value (trx_t *trx, fts_table_t *fts_table, const char *name, const fts_string_t *value)
 Set the value in the config table for name. More...
 
dberr_t fts_config_set_index_value (trx_t *trx, dict_index_t *index, const char *param, fts_string_t *value)
 Set the value specific to an FTS index in the config table. More...
 
dberr_t fts_config_get_ulint (trx_t *trx, fts_table_t *fts_table, const char *name, ulint *int_value)
 Get an ulint value from the config table. More...
 
dberr_t fts_config_set_ulint (trx_t *trx, fts_table_t *fts_table, const char *name, ulint int_value)
 Set an ulint value in the config table. More...
 

Detailed Description

Full Text Search configuration table.

Created 2007/5/9 Sunny Bains

Function Documentation

◆ fts_config_create_index_param_name()

char * fts_config_create_index_param_name ( const char *  param,
const dict_index_t index 
)

Create the config table name for retrieving index specific value.

Returns
index config parameter name
Parameters
paramin: base name of param
indexin: index for config

◆ fts_config_fetch_value()

static bool fts_config_fetch_value ( void *  row,
void *  user_arg 
)
static

Callback function for fetching the config value.

Returns
always returns true
Parameters
rowin: sel_node_t*
user_argin: pointer to ib_vector_t

◆ fts_config_get_index_value()

dberr_t fts_config_get_index_value ( trx_t trx,
dict_index_t index,
const char *  param,
fts_string_t value 
)

Get value specific to an FTS index from the config table.

The caller must ensure that enough space is allocated for value to hold the column contents.

Returns
DB_SUCCESS or error code
Parameters
trxtransaction
indexin: index
paramin: get config value for this parameter name
valueout: value read from config table

◆ fts_config_get_ulint()

dberr_t fts_config_get_ulint ( trx_t trx,
fts_table_t fts_table,
const char *  name,
ulint int_value 
)

Get an ulint value from the config table.

Returns
DB_SUCCESS if all OK else error code
Parameters
trxin: transaction
fts_tablein: the indexed FTS table
namein: param name
int_valueout: value

◆ fts_config_get_value()

dberr_t fts_config_get_value ( trx_t trx,
fts_table_t fts_table,
const char *  name,
fts_string_t value 
)

Get value from the config table.

Get value from config table.

The caller must ensure that enough space is allocated for value to hold the column contents.

Returns
DB_SUCCESS or error code
Parameters
trxtransaction
fts_tablein: the indexed FTS table
namein: get config value for this parameter name
valueout: value read from config table

◆ fts_config_set_index_value()

dberr_t fts_config_set_index_value ( trx_t trx,
dict_index_t index,
const char *  param,
fts_string_t value 
)

Set the value specific to an FTS index in the config table.

Returns
DB_SUCCESS or error code
Parameters
trxtransaction
indexin: index
paramin: get config value for this parameter name
valueout: value read from config table

◆ fts_config_set_ulint()

dberr_t fts_config_set_ulint ( trx_t trx,
fts_table_t fts_table,
const char *  name,
ulint  int_value 
)

Set an ulint value in the config table.

Returns
DB_SUCCESS if all OK else error code
Parameters
trxin: transaction
fts_tablein: the indexed FTS table
namein: param name
int_valuein: value

◆ fts_config_set_value()

dberr_t fts_config_set_value ( trx_t trx,
fts_table_t fts_table,
const char *  name,
const fts_string_t value 
)

Set the value in the config table for name.

Returns
DB_SUCCESS or error code
Parameters
trxtransaction
fts_tablein: the indexed FTS table
namein: get config value for this parameter name
valuein: value to update