MySQL 5.6.14 Source Code Document
|
Go to the source code of this file.
Classes | |
struct | ib_col_meta_t |
Macros | |
#define | UNIV_NO_IGNORE |
#define | IB_TRUE 0x1UL |
#define | IB_FALSE 0x0UL |
#define | IB_CFG_BINLOG_ENABLED 0x1 |
#define | IB_CFG_MDL_ENABLED 0x2 |
#define | IB_CFG_DISABLE_ROWLOCK 0x4 |
#define | IB_SQL_NULL 0xFFFFFFFF |
#define | IB_N_SYS_COLS 3 |
#define | MAX_TEXT_LEN 4096 |
#define | IB_MAX_COL_NAME_LEN (64 * 3) |
#define | IB_MAX_TABLE_NAME_LEN (64 * 3) * 2 |
Typedefs | |
typedef enum dberr_t | ib_err_t |
typedef unsigned char | ib_byte_t |
typedef unsigned long int | ib_ulint_t |
typedef int8_t | ib_i8_t |
typedef uint8_t | ib_u8_t |
typedef int16_t | ib_i16_t |
typedef uint16_t | ib_u16_t |
typedef int32_t | ib_i32_t |
typedef uint32_t | ib_u32_t |
typedef int64_t | ib_i64_t |
typedef uint64_t | ib_u64_t |
typedef void * | ib_opaque_t |
typedef ib_opaque_t | ib_charset_t |
typedef ib_ulint_t | ib_bool_t |
typedef ib_u64_t | ib_id_u64_t |
typedef void(* | ib_cb_t )(void) |
typedef FILE * | ib_msg_stream_t |
typedef int(* | ib_msg_log_t )(ib_msg_stream_t, const char *,...) |
typedef struct ib_tuple_t * | ib_tpl_t |
typedef struct trx_t * | ib_trx_t |
typedef struct ib_cursor_t * | ib_crsr_t |
typedef int(* | ib_client_cmp_t )(const ib_col_meta_t *col_meta, const ib_byte_t *p1, ib_ulint_t p1_len, const ib_byte_t *p2, ib_ulint_t p2_len) |
InnoDB Native API
2008-08-01 Created by Sunny Bains. 3/20/2011 Jimmy Yang extracted from Embedded InnoDB
Definition in file api0api.h.
#define IB_FALSE 0x0UL |
#define IB_MAX_COL_NAME_LEN (64 * 3) |
#define IB_MAX_TABLE_NAME_LEN (64 * 3) * 2 |
#define IB_N_SYS_COLS 3 |
#define IB_TRUE 0x1UL |
#define MAX_TEXT_LEN 4096 |
typedef unsigned char ib_byte_t |
typedef void(* ib_cb_t)(void) |
typedef int(* ib_client_cmp_t)(const ib_col_meta_t *col_meta, const ib_byte_t *p1, ib_ulint_t p1_len, const ib_byte_t *p2, ib_ulint_t p2_len) |
This function is used to compare two data fields for which the data type is such that we must use the client code to compare them.
col_meta | column meta data |
p1 | key p1_len key length |
p2 | second key |
p2_len | second key length |
typedef struct ib_cursor_t* ib_crsr_t |
typedef int(* ib_msg_log_t)(ib_msg_stream_t, const char *,...) |
typedef FILE* ib_msg_stream_t |
typedef struct ib_tuple_t* ib_tpl_t |
InnoDB tuple handle. This handle can refer to either a cluster index
tuple or a secondary index tuple. There are two types of tuples for each type of index, making a total of four types of tuple handles. There is a tuple for reading the entire row contents and another for searching on the index key.
InnoDB transaction handle, all database operations need to be covered
by transactions. This handle represents a transaction. The handle can be created with ib_trx_begin(), you commit your changes with ib_trx_commit() and undo your changes using ib_trx_rollback(). If the InnoDB deadlock monitor rolls back the transaction then you need to free the transaction using the function ib_trx_release(). You can query the state of an InnoDB transaction by calling ib_trx_state().
typedef uint16_t ib_u16_t |
typedef uint32_t ib_u32_t |
typedef uint64_t ib_u64_t |
typedef unsigned long int ib_ulint_t |
enum ib_cfg_type_t |
Possible types for a configuration variable.
enum ib_col_attr_t |
InnoDB column attributes
enum ib_col_type_t |
column types that are supported.
IB_VARCHAR |
Character varying length. The column is not padded. |
IB_CHAR |
Fixed length character string. The column is padded to the right. |
IB_BINARY |
Fixed length binary, similar to IB_CHAR but the column is not padded to the right. |
IB_VARBINARY |
Variable length binary |
IB_BLOB |
Binary large object, or a TEXT type |
IB_INT |
Integer: can be any size from 1 - 8 bytes. If the size is 1, 2, 4 and 8 bytes then you can use the typed read and write functions. For other sizes you will need to use the ib_col_get_value() function and do the conversion yourself. |
IB_SYS |
System column, this column can be one of DATA_TRX_ID, DATA_ROLL_PTR or DATA_ROW_ID. |
IB_FLOAT |
C (float) floating point value. |
IB_DECIMAL |
Decimal stored as an ASCII string |
IB_VARCHAR_ANYCHARSET |
Any charset, varying length |
IB_CHAR_ANYCHARSET |
Any charset, fixed length |
enum ib_index_type_t |
enum ib_lck_mode_t |
InnoDB lock modes.
enum ib_match_mode_t |
Various match modes used by ib_cursor_moveto()
enum ib_srch_mode_t |
InnoDB cursor search modes for ib_cursor_moveto().
Note: Values must match those found in page0cur.h
enum ib_tbl_fmt_t |
InnoDB table format types
enum ib_trx_level_t |
Transaction isolation levels
enum ib_trx_state_t |
The transaction state can be queried using the
ib_trx_state() function. The InnoDB deadlock monitor can roll back a transaction and users should be prepared for this, especially where there is high contention. The way to determine the state of the transaction is to query it's state and check.
ib_ulint_t ib_cfg_bk_commit_interval | ( | ) |
Return configure value for background commit interval (in seconds)
Definition at line 3921 of file api0api.cc.
int ib_cfg_get_cfg | ( | ) |
ib_trx_state_t ib_cfg_trx_level | ( | ) |
Return isolation configuration set by "innodb_api_trx_level"
Definition at line 3910 of file api0api.cc.
ib_err_t ib_close_thd | ( | void * | thd | ) |
Frees a possible InnoDB trx object associated with the current THD.
Frees a possible InnoDB trx object associated with the current THD.
thd | in: handle to the MySQL thread of the user whose resources should be free'd |
Definition at line 3895 of file api0api.cc.
Create an InnoDB tuple for table row operations.
Create an InnoDB tuple for table row operations.
ib_crsr | in: Cursor instance |
Definition at line 3194 of file api0api.cc.
Create an InnoDB tuple used for table key operations.
Create an InnoDB tuple used for table key operations.
ib_crsr | in: Cursor instance |
Definition at line 3175 of file api0api.cc.
ib_ulint_t ib_col_copy_value | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i, | ||
void * | dst, | ||
ib_ulint_t | len | ||
) |
Copy a column value from the tuple.
Copy a column value from the tuple.
ib_tpl | in: tuple instance |
i | in: column index in tuple |
dst | out: copied data value |
len | in: max data value len to copy |
Definition at line 2625 of file api0api.cc.
ib_ulint_t ib_col_get_len | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i | ||
) |
Get the size of the data available in the column the tuple.
Get the size of the data available in a column of the tuple.
ib_tpl | in: tuple instance |
i | in: column index in tuple |
Definition at line 2508 of file api0api.cc.
ib_ulint_t ib_col_get_meta | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i, | ||
ib_col_meta_t * | ib_col_meta | ||
) |
Get a column type, length and attributes from the tuple.
Get a column type, length and attributes from the tuple.
ib_tpl | in: tuple instance |
i | in: column index in tuple |
ib_col_meta | out: column meta data |
Definition at line 2969 of file api0api.cc.
const char* ib_col_get_name | ( | ib_crsr_t | ib_crsr, |
ib_ulint_t | i | ||
) |
Get a column type, length and attributes from the tuple.
Get a column name from the tuple.
ib_crsr | in: InnoDB cursor instance |
i | in: column index in tuple |
Definition at line 2662 of file api0api.cc.
const void* ib_col_get_value | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i | ||
) |
Get a column value pointer from the tuple.
Get a column value pointer from the tuple.
ib_tpl | in: tuple instance |
i | in: column index in tuple |
Definition at line 2946 of file api0api.cc.
ib_err_t ib_col_set_value | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | col_no, | ||
const void * | src, | ||
ib_ulint_t | len, | ||
ib_bool_t | need_cpy | ||
) |
Set a column of the tuple. Make a copy using the tuple's heap.
Set a column of the tuple. Make a copy using the tuple's heap.
ib_tpl | in: tuple instance |
col_no | in: column index in tuple |
src | in: data value |
len | in: data value len |
need_cpy | in: if need memcpy |
Definition at line 2300 of file api0api.cc.
void ib_cursor_clear_trx | ( | ib_crsr_t | ib_crsr | ) |
set a cursor trx to NULL in/out: InnoDB cursor
set a cursor trx to NULL
ib_crsr | in/out: InnoDB cursor |
Definition at line 1299 of file api0api.cc.
Close an InnoDB table and free the cursor.
Close an InnoDB table and free the cursor.
ib_crsr | in,own: InnoDB cursor |
Definition at line 1388 of file api0api.cc.
Close the table, decrement n_ref_count count.
Close the table, decrement n_ref_count count.
ib_crsr | in,own: InnoDB cursor |
Definition at line 1426 of file api0api.cc.
Commit the transaction in a cursor
Commit the transaction in a cursor
ib_crsr | in/out: InnoDB cursor |
ib_trx | in: transaction |
Definition at line 1367 of file api0api.cc.
Delete a row in a table.
Delete a row in a table.
ib_crsr | in: InnoDB cursor instance |
Definition at line 1995 of file api0api.cc.
Move cursor to the first record in the table.
Move cursor to the first record in the table.
ib_crsr | in: InnoDB cursor instance |
Definition at line 2152 of file api0api.cc.
Insert a row to a table.
Insert a row to a table.
ib_crsr | in/out: InnoDB cursor instance |
ib_tpl | in: tuple to insert |
Definition at line 1562 of file api0api.cc.
ib_bool_t ib_cursor_is_positioned | ( | const ib_crsr_t | ib_crsr | ) |
Check if cursor is positioned.
Check if cursor is positioned.
ib_crsr | in: InnoDB cursor instance |
Definition at line 3336 of file api0api.cc.
Move cursor to the last record in the table.
Move cursor to the last record in the table.
ib_crsr | in: InnoDB cursor instance |
Definition at line 2166 of file api0api.cc.
ib_err_t ib_cursor_lock | ( | ib_crsr_t | ib_crsr, |
ib_lck_mode_t | ib_lck_mode | ||
) |
Lock an InnoDB cursor/table.
Set the Lock an InnoDB cursor/table.
ib_crsr | in/out: InnoDB cursor |
ib_lck_mode | in: InnoDB lock mode |
Definition at line 3380 of file api0api.cc.
ib_err_t ib_cursor_moveto | ( | ib_crsr_t | ib_crsr, |
ib_tpl_t | ib_tpl, | ||
ib_srch_mode_t | ib_srch_mode | ||
) |
Search for key.
Search for key.
ib_crsr | in: InnoDB cursor instance |
ib_tpl | in: Key to search for |
ib_srch_mode | in: search mode |
Definition at line 2203 of file api0api.cc.
update the cursor with new transactions and also reset the cursor
update the cursor with new transactions and also reset the cursor
ib_crsr | in/out: InnoDB cursor |
ib_trx | in: transaction |
Definition at line 1339 of file api0api.cc.
Move cursor to the next record in the table.
Move cursor to the next user record in the table.
ib_crsr | in: InnoDB cursor instance |
Definition at line 2180 of file api0api.cc.
ib_err_t ib_cursor_open_index_using_id | ( | ib_id_u64_t | index_id, |
ib_trx_t | ib_trx, | ||
ib_crsr_t * | ib_crsr | ||
) |
Open an InnoDB index and return a cursor handle to it.
Open an InnoDB index and return a cursor handle to it.
index_id | in: index id of index to open |
ib_trx | in: Current transaction handle can be NULL |
ib_crsr | out: InnoDB cursor |
Definition at line 1117 of file api0api.cc.
ib_err_t ib_cursor_open_index_using_name | ( | ib_crsr_t | ib_open_crsr, |
const char * | index_name, | ||
ib_crsr_t * | ib_crsr, | ||
int * | idx_type, | ||
ib_id_u64_t * | idx_id | ||
) |
Open an InnoDB secondary index cursor and return a cursor handle to it.
Open an InnoDB secondary index cursor and return a cursor handle to it.
ib_open_crsr | in: open/active cursor |
index_name | in: secondary index name |
ib_crsr | out,own: InnoDB index cursor |
idx_type | out: index is cluster index |
idx_id | out: index id |
Definition at line 1166 of file api0api.cc.
Open an InnoDB table by name and return a cursor handle to it.
Open an InnoDB table and return a cursor handle to it.
name | in: table name |
ib_trx | in: Current transaction handle can be NULL |
ib_crsr | out,own: InnoDB cursor |
Definition at line 1234 of file api0api.cc.
ib_err_t ib_cursor_open_table_using_id | ( | ib_id_u64_t | table_id, |
ib_trx_t | ib_trx, | ||
ib_crsr_t * | ib_crsr | ||
) |
Open an InnoDB table and return a cursor handle to it.
Open an InnoDB table and return a cursor handle to it.
table_id | in: table id of table to open |
ib_trx | in: Current transaction handle can be NULL |
ib_crsr | out,own: InnoDB cursor |
Definition at line 1085 of file api0api.cc.
Read current row.
Read current row.
ib_crsr | in: InnoDB cursor instance |
ib_tpl | out: read cols into this tuple |
Definition at line 2056 of file api0api.cc.
Reset the cursor.
Reset the cursor.
ib_crsr | in/out: InnoDB cursor |
Definition at line 1313 of file api0api.cc.
void ib_cursor_set_cluster_access | ( | ib_crsr_t | ib_crsr | ) |
Set need to access clustered index record flag. in/out: InnoDB cursor
Set need to access clustered index record.
ib_crsr | in/out: InnoDB cursor |
Definition at line 3500 of file api0api.cc.
ib_err_t ib_cursor_set_lock_mode | ( | ib_crsr_t | ib_crsr, |
ib_lck_mode_t | ib_lck_mode | ||
) |
Set the Lock mode of the cursor.
Set the Lock mode of the cursor.
ib_crsr | in/out: InnoDB cursor |
ib_lck_mode | in: InnoDB lock mode |
Definition at line 3471 of file api0api.cc.
void ib_cursor_set_match_mode | ( | ib_crsr_t | ib_crsr, |
ib_match_mode_t | match_mode | ||
) |
Set the match mode for ib_cursor_move(). in: ib_cursor_moveto match mode
Set the cursor search mode.
ib_crsr | in: Cursor instance |
match_mode | in: ib_cursor_moveto match mode |
Definition at line 2249 of file api0api.cc.
void ib_cursor_stmt_begin | ( | ib_crsr_t | ib_crsr | ) |
Inform the cursor that it's the start of an SQL statement. in: cursor
Inform the cursor that it's the start of an SQL statement.
ib_crsr | in: cursor |
Definition at line 3667 of file api0api.cc.
Truncate a table. The cursor handle will be closed and set to NULL on success.
Truncate a table. The cursor handle will be closed and set to NULL on success.
ib_crsr | in/out: cursor for table to truncate |
table_id | out: new table id |
Definition at line 3784 of file api0api.cc.
ib_err_t ib_cursor_update_row | ( | ib_crsr_t | ib_crsr, |
const ib_tpl_t | ib_old_tpl, | ||
const ib_tpl_t | ib_new_tpl | ||
) |
Update a row in a table.
Update a row in a table.
ib_crsr | in: InnoDB cursor instance |
ib_old_tpl | in: Old tuple in table |
ib_new_tpl | in: New tuple to update |
Definition at line 1883 of file api0api.cc.
const char* ib_get_idx_field_name | ( | ib_crsr_t | ib_crsr, |
ib_ulint_t | i | ||
) |
Get an index field name from the cursor.
Get an index field name from the cursor.
ib_crsr | in: InnoDB cursor instance |
i | in: column index in tuple |
Definition at line 2683 of file api0api.cc.
ib_err_t ib_index_get_id | ( | const char * | table_name, |
const char * | index_name, | ||
ib_id_u64_t * | index_id | ||
) |
Get an index id.
Get an index id.
table_name | in: find index for this table |
index_name | in: index to find |
index_id | out: index id if found |
Definition at line 3283 of file api0api.cc.
void* ib_open_table_by_name | ( | const char * | name | ) |
Open a table using the table name, if found then increment table ref count.
Open a table using the table name, if found then increment table ref count.
name | in: table name to lookup |
Definition at line 266 of file api0api.cc.
ib_bool_t ib_schema_lock_is_exclusive | ( | const ib_trx_t | ib_trx | ) |
Checks if the data dictionary is latched in exclusive mode by a user transaction.
Checks if the data dictionary is latched in exclusive mode.
ib_trx | in: transaction |
Definition at line 3352 of file api0api.cc.
Create an InnoDB tuple used for index/table search.
Create an InnoDB tuple used for index/table search.
ib_crsr | in: Cursor instance |
Definition at line 3158 of file api0api.cc.
Create an InnoDB tuple used for index/table search.
Create an InnoDB tuple used for index/table search.
ib_crsr | in: Cursor instance |
Definition at line 3141 of file api0api.cc.
ib_err_t ib_table_get_id | ( | const char * | table_name, |
ib_id_u64_t * | table_id | ||
) |
Get a table id.
Get a table id. This function will acquire the dictionary mutex.
table_name | in: table to find |
table_id | out: table id if found |
Definition at line 3262 of file api0api.cc.
ib_err_t ib_table_lock | ( | ib_trx_t | ib_trx, |
ib_id_u64_t | table_id, | ||
ib_lck_mode_t | ib_lck_mode | ||
) |
Set the Lock an InnoDB table using the table id.
Set the Lock an InnoDB table using the table id.
ib_trx | in/out: transaction |
table_id | in: table id |
ib_lck_mode | in: InnoDB lock mode |
Definition at line 3399 of file api0api.cc.
ib_err_t ib_table_name_check | ( | const char * | name | ) |
Check whether the table name conforms to our requirements. Currently we only do a simple check for the presence of a '/'.
Check whether the table name conforms to our requirements. Currently we only do a simple check for the presence of a '/'.
name | in: table name to check |
Definition at line 887 of file api0api.cc.
ib_err_t ib_table_truncate | ( | const char * | table_name, |
ib_id_u64_t * | table_id | ||
) |
Truncate a table.
Truncate a table.
table_name | in: table name |
table_id | out: new table id |
Definition at line 3837 of file api0api.cc.
ib_trx_t ib_trx_begin | ( | ib_trx_level_t | ib_trx_level | ) |
Begin a transaction. This will allocate a new transaction handle and put the transaction in the active state.
Begin a transaction. This will allocate a new transaction handle. put the transaction in the active state.
ib_trx_level | in: trx isolation level |
Definition at line 584 of file api0api.cc.
Commit a transaction. This function will release the schema latches too. It will also free the transaction handle.
Commit a transaction. This function will also release the schema latches too.
ib_trx | in: trx handle |
Definition at line 647 of file api0api.cc.
Get a trx start time.
Get a trx start time.
ib_trx | in: transaction |
Definition at line 617 of file api0api.cc.
Release the resources of the transaction. If the transaction was selected as a victim by InnoDB and rolled back then use this function to free the transaction handle.
Release the resources of the transaction.
ib_trx | in: trx handle |
Definition at line 629 of file api0api.cc.
Rollback a transaction. This function will release the schema latches too. It will also free the transaction handle.
Rollback a transaction. This function will also release the schema latches too.
ib_trx | in: trx handle |
Definition at line 673 of file api0api.cc.
ib_err_t ib_trx_start | ( | ib_trx_t | ib_trx, |
ib_trx_level_t | ib_trx_level, | ||
void * | thd | ||
) |
Start a transaction that's been rolled back. This special function exists for the case when InnoDB's deadlock detector has rolledack a transaction. While the transaction has been rolled back the handle is still valid and can be reused by calling this function. If you don't want to reuse the transaction handle then you can free the handle by calling ib_trx_release().
Begin a transaction.
ib_trx | in: transaction to restart |
ib_trx_level | in: trx isolation level |
thd | in: THD |
Definition at line 556 of file api0api.cc.
ib_trx_state_t ib_trx_state | ( | ib_trx_t | ib_trx | ) |
Query the transaction's state. This function can be used to check for the state of the transaction in case it has been rolled back by the InnoDB deadlock detector. Note that when a transaction is selected as a victim for rollback, InnoDB will always return an appropriate error code indicating this.
Get the transaction's state.
ib_trx | in: trx handle |
Definition at line 603 of file api0api.cc.
"Clear" or reset an InnoDB tuple. We free the heap and recreate the tuple.
"Clear" or reset an InnoDB tuple. We free the heap and recreate the tuple.
ib_tpl | in,own: tuple (will be freed) |
Definition at line 2983 of file api0api.cc.
Copy the contents of source tuple to destination tuple. The tuples must be of the same type and belong to the same table/index.
Copy the contents of source tuple to destination tuple. The tuples must be of the same type and belong to the same table/index.
ib_dst_tpl | in: destination tuple |
ib_src_tpl | in: source tuple |
Definition at line 3087 of file api0api.cc.
void ib_tuple_delete | ( | ib_tpl_t | ib_tpl | ) |
Destroy an InnoDB tuple. in,own: Tuple instance to delete
Destroy an InnoDB tuple.
ib_tpl | in,own: Tuple instance to delete |
Definition at line 3244 of file api0api.cc.
ib_err_t ib_tuple_get_cluster_key | ( | ib_crsr_t | ib_crsr, |
ib_tpl_t * | ib_dst_tpl, | ||
const ib_tpl_t | ib_src_tpl | ||
) |
Create a new cluster key search tuple and copy the contents of the secondary index key tuple columns that refer to the cluster index record to the cluster key. It does a deep copy of the column data.
Create a new cluster key search tuple and copy the contents of the secondary index key tuple columns that refer to the cluster index record to the cluster key. It does a deep copy of the column data.
ib_crsr | in: secondary index cursor |
ib_dst_tpl | out,own: destination tuple |
ib_src_tpl | in: source tuple |
Definition at line 3012 of file api0api.cc.
ib_ulint_t ib_tuple_get_n_cols | ( | const ib_tpl_t | ib_tpl | ) |
Return the number of columns in the tuple definition.
Return the number of columns in the tuple definition.
ib_tpl | in: Tuple for table/index |
Definition at line 3231 of file api0api.cc.
ib_ulint_t ib_tuple_get_n_user_cols | ( | const ib_tpl_t | ib_tpl | ) |
Return the number of user columns in the tuple definition.
Return the number of user columns in the tuple definition.
ib_tpl | in: Tuple for current table |
Definition at line 3213 of file api0api.cc.
ib_err_t ib_tuple_read_double | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | col_no, | ||
double * | dval | ||
) |
Read a double column value from an InnoDB tuple.
Read a double column value from an InnoDB tuple.
ib_tpl | in: InnoDB tuple |
col_no | in: column number |
dval | out: double value |
Definition at line 3705 of file api0api.cc.
ib_err_t ib_tuple_read_float | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | col_no, | ||
float * | fval | ||
) |
Read a float value from an InnoDB tuple.
Read a float value from an InnoDB tuple.
ib_tpl | in: InnoDB tuple |
col_no | in: column number |
fval | out: float value |
Definition at line 3756 of file api0api.cc.
ib_err_t ib_tuple_read_i16 | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i, | ||
ib_i16_t * | ival | ||
) |
Read a signed int 16 bit column from an InnoDB tuple.
Read a signed int 16 bit column from an InnoDB tuple.
ib_tpl | in: InnoDB tuple |
i | in: column number |
ival | out: integer value |
Definition at line 2814 of file api0api.cc.
ib_err_t ib_tuple_read_i32 | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i, | ||
ib_i32_t * | ival | ||
) |
Read a signed int 32 bit column from an InnoDB tuple.
Read a signed int 32 bit column from an InnoDB tuple.
ib_tpl | in: InnoDB tuple |
i | in: column number |
ival | out: integer value |
Definition at line 2858 of file api0api.cc.
ib_err_t ib_tuple_read_i64 | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i, | ||
ib_i64_t * | ival | ||
) |
Read a signed int 64 bit column from an InnoDB tuple.
Read a signed int 64 bit column from an InnoDB tuple.
ib_tpl | in: InnoDB tuple |
i | in: column number |
ival | out: integer value |
Definition at line 2902 of file api0api.cc.
ib_err_t ib_tuple_read_i8 | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i, | ||
ib_i8_t * | ival | ||
) |
Read a signed int 8 bit column from an InnoDB tuple.
Read a signed int 8 bit column from an InnoDB tuple.
ib_tpl | in: InnoDB tuple |
i | in: column number |
ival | out: integer value |
Definition at line 2770 of file api0api.cc.
ib_err_t ib_tuple_read_u16 | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i, | ||
ib_u16_t * | ival | ||
) |
Read an unsigned int 16 bit column from an InnoDB tuple.
Read an unsigned int 16 bit column from an InnoDB tuple.
ib_tpl | in: InnoDB tuple |
i | in: column number |
ival | out: integer value |
Definition at line 2836 of file api0api.cc.
ib_err_t ib_tuple_read_u32 | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i, | ||
ib_u32_t * | ival | ||
) |
Read an unsigned int 32 bit column from an InnoDB tuple.
Read an unsigned int 32 bit column from an InnoDB tuple.
ib_tpl | in: InnoDB tuple |
i | in: column number |
ival | out: integer value |
Definition at line 2880 of file api0api.cc.
ib_err_t ib_tuple_read_u64 | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i, | ||
ib_u64_t * | ival | ||
) |
Read an unsigned int 64 bit column from an InnoDB tuple.
Read an unsigned int 64 bit column from an InnoDB tuple.
ib_tpl | in: InnoDB tuple |
i | in: column number |
ival | out: integer value |
Definition at line 2924 of file api0api.cc.
ib_err_t ib_tuple_read_u8 | ( | ib_tpl_t | ib_tpl, |
ib_ulint_t | i, | ||
ib_u8_t * | ival | ||
) |
Read an unsigned int 8 bit column from an InnoDB tuple.
Read an unsigned int 8 bit column from an InnoDB tuple.
ib_tpl | in: InnoDB tuple |
i | in: column number |
ival | out: integer value |
Definition at line 2792 of file api0api.cc.
Write a double value to a column.
Write a double value to a column.
ib_tpl | in/out: tuple to write to |
col_no | in: column number |
val | in: value to write |
Definition at line 3681 of file api0api.cc.
Write a float value to a column.
Write a float value to a column.
ib_tpl | in/out: tuple to write to |
col_no | in: column number |
val | in: value to write |
Definition at line 3732 of file api0api.cc.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
ib_tpl | in/out: tuple to write to |
col_no | in: column number |
val | in: value to write |
Definition at line 3564 of file api0api.cc.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
ib_tpl | in/out: tuple to write to |
col_no | in: column number |
val | in: value to write |
Definition at line 3579 of file api0api.cc.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
ib_tpl | in/out: tuple to write to |
col_no | in: column number |
val | in: value to write |
Definition at line 3594 of file api0api.cc.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
ib_tpl | in/out: tuple to write to |
col_no | in: column number |
val | in: value to write |
Definition at line 3549 of file api0api.cc.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
ib_tpl | in/out: tupe to write to |
col_no | in: column number |
val | in: value to write |
Definition at line 3624 of file api0api.cc.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
ib_tpl | in/out: tuple to write to |
col_no | in: column number |
val | in: value to write |
Definition at line 3639 of file api0api.cc.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
ib_tpl | in/out: tuple to write to |
col_no | in: column number |
val | in: value to write |
Definition at line 3654 of file api0api.cc.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
Write an integer value to a column. Integers are stored in big-endian format and will need to be converted from the host format.
ib_tpl | in/out: tuple to write to |
col_no | in: column number |
val | in: value to write |
Definition at line 3609 of file api0api.cc.