Drizzled Public API Documentation

data_dictionary_schema.cc File Reference
#include <config.h>
#include "data_dictionary_schema.h"
#include "transaction_log_index.h"
#include <fcntl.h>
#include <sys/stat.h>

Go to the source code of this file.

Variables

TransactionLogtransaction_log
TransactionLogIndextransaction_log_index

Detailed Description

Implements the DATA_DICTIONARY views which allows querying the state of the transaction log and its entries.

There are three views defined for the transaction log:

CREATE TABLE DATA_DICTIONARY.TRANSACTION_LOG ( FILE_NAME VARCHAR NOT NULL , FILE_LENGTH BIGINT NOT NULL , NUM_LOG_ENTRIES BIGINT NOT NULL , NUM_TRANSACTIONS BIGINT NOT NULL , MIN_TRANSACTION_ID BIGINT NOT NULL , MAX_TRANSACTION_ID BIGINT NOT NULL , MIN_END_TIMESTAMP BIGINT NOT NULL , MAX_END_TIMESTAMP BIGINT NOT NULL , INDEX_SIZE_IN_BYTES BIGINT NOT NULL );

CREATE TABLE DATA_DICTIONARY.TRANSACTION_LOG_ENTRIES ( ENTRY_OFFSET BIGINT NOT NULL , ENTRY_TYPE VARCHAR NOT NULL , ENTRY_LENGTH BIGINT NOT NULL );

CREATE TABLE DATA_DICTIONARY.TRANSACTION_LOG_TRANSACTIONS ( ENTRY_OFFSET BIGINT NOT NULL , TRANSACTION_ID BIGINT NOT NULL , SERVER_ID BIGINT NOT NULL , START_TIMESTAMP BIGINT NOT NULL , END_TIMESTAMP BIGINT NOT NULL , NUM_STATEMENTS BIGINT NOT NULL , CHECKSUM BIGINT NOT NULL );

Definition in file data_dictionary_schema.cc.