Skip to content

File cubrid_log.h

FileList > api > cubrid_log.h

Go to the source code of this file

  • #include <stdint.h>
  • #include <time.h>

Classes

Type Name
struct cubrid_log_item
struct dcl
struct ddl
struct dml
struct timer

Public Types

Type Name
typedef union cubrid_data_item CUBRID_DATA_ITEM
typedef struct cubrid_log_item CUBRID_LOG_ITEM
typedef struct dcl DCL
typedef struct ddl DDL
typedef struct dml DML
typedef struct timer TIMER
union cubrid_data_item

Public Functions

Type Name
int cubrid_log_clear_log_item (CUBRID_LOG_ITEM * log_item_list)
int cubrid_log_connect_server (char * host, int port, char * dbname, char * id, char * password)
int cubrid_log_extract (uint64_t * lsa, CUBRID_LOG_ITEM ** log_item_list, int * list_size)
int cubrid_log_finalize (void)
int cubrid_log_find_lsa (time_t * timestamp, uint64_t * lsa)
int cubrid_log_set_all_in_cond (int retrieve_all)
int cubrid_log_set_connection_timeout (int timeout)
int cubrid_log_set_extraction_table (uint64_t * classoid_arr, int arr_size)
int cubrid_log_set_extraction_timeout (int timeout)
int cubrid_log_set_extraction_user (char ** user_arr, int arr_size)
int cubrid_log_set_max_log_item (int max_log_item)
int cubrid_log_set_tracelog (char * path, int level, int filesize)

Macros

Type Name
define CUBRID_LOG_CONNECTION_TIMEDOUT (-14)
define CUBRID_LOG_EXCEED_TRACELOG_FILESIZE (-29)
define CUBRID_LOG_EXTRACTION_TIMEOUT (-6)
define CUBRID_LOG_FAILED_CLOSE_FILE (-2)
define CUBRID_LOG_FAILED_CONNECT (-10)
define CUBRID_LOG_FAILED_DEALLOC (-1)
define CUBRID_LOG_FAILED_DISCONNECT (-3)
define CUBRID_LOG_FAILED_EXTRACT (-30)
define CUBRID_LOG_FAILED_LOGIN (-33)
define CUBRID_LOG_FAILED_MALLOC (-28)
define CUBRID_LOG_INVALID_CLASSOID (-18)
define CUBRID_LOG_INVALID_CLASSOID_ARR_SIZE (-17)
define CUBRID_LOG_INVALID_CONNECTION_TIMEOUT (-26)
define CUBRID_LOG_INVALID_DBNAME (-13)
define CUBRID_LOG_INVALID_EXTRACTION_TIMEOUT (-25)
define CUBRID_LOG_INVALID_FILESIZE (-21)
define CUBRID_LOG_INVALID_FUNC_CALL_STAGE (-27)
define CUBRID_LOG_INVALID_HOST (-12)
define CUBRID_LOG_INVALID_ID (-31)
define CUBRID_LOG_INVALID_LEVEL (-22)
define CUBRID_LOG_INVALID_LOGITEM_LIST (-4)
define CUBRID_LOG_INVALID_LSA (-5)
define CUBRID_LOG_INVALID_MAX_LOG_ITEM (-20)
define CUBRID_LOG_INVALID_OUT_PARAM (-8)
define CUBRID_LOG_INVALID_PASSWORD (-32)
define CUBRID_LOG_INVALID_PATH (-23)
define CUBRID_LOG_INVALID_PORT (-11)
define CUBRID_LOG_INVALID_RETRIEVE_ALL (-19)
define CUBRID_LOG_INVALID_TIMESTAMP (-9)
define CUBRID_LOG_INVALID_USER (-16)
define CUBRID_LOG_INVALID_USER_ARR_SIZE (-15)
define CUBRID_LOG_LSA_NOT_FOUND (-7)
define CUBRID_LOG_MAX_DBNAME_LEN 64
define CUBRID_LOG_NO_FILE_PERMISSION (-24)
define CUBRID_LOG_SUCCESS (0)
define CUBRID_LOG_SUCCESS_WITH_ADJUSTED_LSA (2)
define CUBRID_LOG_SUCCESS_WITH_NO_LOGITEM (1)
define CUBRID_LOG_UNAVAILABLE_CDC_SERVER (-34)

Public Types Documentation

typedef CUBRID_DATA_ITEM

typedef union cubrid_data_item CUBRID_DATA_ITEM;

typedef CUBRID_LOG_ITEM

typedef struct cubrid_log_item CUBRID_LOG_ITEM;

typedef DCL

typedef struct dcl DCL;

typedef DDL

typedef struct ddl DDL;

typedef DML

typedef struct dml DML;

typedef TIMER

typedef struct timer TIMER;

union cubrid_data_item



Public Functions Documentation

function cubrid_log_clear_log_item

int cubrid_log_clear_log_item (
    CUBRID_LOG_ITEM * log_item_list
) 

function cubrid_log_connect_server

int cubrid_log_connect_server (
    char * host,
    int port,
    char * dbname,
    char * id,
    char * password
) 

function cubrid_log_extract

int cubrid_log_extract (
    uint64_t * lsa,
    CUBRID_LOG_ITEM ** log_item_list,
    int * list_size
) 

function cubrid_log_finalize

int cubrid_log_finalize (
    void
) 

function cubrid_log_find_lsa

int cubrid_log_find_lsa (
    time_t * timestamp,
    uint64_t * lsa
) 

function cubrid_log_set_all_in_cond

int cubrid_log_set_all_in_cond (
    int retrieve_all
) 

function cubrid_log_set_connection_timeout

int cubrid_log_set_connection_timeout (
    int timeout
) 

function cubrid_log_set_extraction_table

int cubrid_log_set_extraction_table (
    uint64_t * classoid_arr,
    int arr_size
) 

function cubrid_log_set_extraction_timeout

int cubrid_log_set_extraction_timeout (
    int timeout
) 

function cubrid_log_set_extraction_user

int cubrid_log_set_extraction_user (
    char ** user_arr,
    int arr_size
) 

function cubrid_log_set_max_log_item

int cubrid_log_set_max_log_item (
    int max_log_item
) 

function cubrid_log_set_tracelog

int cubrid_log_set_tracelog (
    char * path,
    int level,
    int filesize
) 

Macro Definition Documentation

define CUBRID_LOG_CONNECTION_TIMEDOUT

#define CUBRID_LOG_CONNECTION_TIMEDOUT `(-14)`

define CUBRID_LOG_EXCEED_TRACELOG_FILESIZE

#define CUBRID_LOG_EXCEED_TRACELOG_FILESIZE `(-29)`

define CUBRID_LOG_EXTRACTION_TIMEOUT

#define CUBRID_LOG_EXTRACTION_TIMEOUT `(-6)`

define CUBRID_LOG_FAILED_CLOSE_FILE

#define CUBRID_LOG_FAILED_CLOSE_FILE `(-2)`

define CUBRID_LOG_FAILED_CONNECT

#define CUBRID_LOG_FAILED_CONNECT `(-10)`

define CUBRID_LOG_FAILED_DEALLOC

#define CUBRID_LOG_FAILED_DEALLOC `(-1)`

define CUBRID_LOG_FAILED_DISCONNECT

#define CUBRID_LOG_FAILED_DISCONNECT `(-3)`

define CUBRID_LOG_FAILED_EXTRACT

#define CUBRID_LOG_FAILED_EXTRACT `(-30)`

define CUBRID_LOG_FAILED_LOGIN

#define CUBRID_LOG_FAILED_LOGIN `(-33)`

define CUBRID_LOG_FAILED_MALLOC

#define CUBRID_LOG_FAILED_MALLOC `(-28)`

define CUBRID_LOG_INVALID_CLASSOID

#define CUBRID_LOG_INVALID_CLASSOID `(-18)`

define CUBRID_LOG_INVALID_CLASSOID_ARR_SIZE

#define CUBRID_LOG_INVALID_CLASSOID_ARR_SIZE `(-17)`

define CUBRID_LOG_INVALID_CONNECTION_TIMEOUT

#define CUBRID_LOG_INVALID_CONNECTION_TIMEOUT `(-26)`

define CUBRID_LOG_INVALID_DBNAME

#define CUBRID_LOG_INVALID_DBNAME `(-13)`

define CUBRID_LOG_INVALID_EXTRACTION_TIMEOUT

#define CUBRID_LOG_INVALID_EXTRACTION_TIMEOUT `(-25)`

define CUBRID_LOG_INVALID_FILESIZE

#define CUBRID_LOG_INVALID_FILESIZE `(-21)`

define CUBRID_LOG_INVALID_FUNC_CALL_STAGE

#define CUBRID_LOG_INVALID_FUNC_CALL_STAGE `(-27)`

define CUBRID_LOG_INVALID_HOST

#define CUBRID_LOG_INVALID_HOST `(-12)`

define CUBRID_LOG_INVALID_ID

#define CUBRID_LOG_INVALID_ID `(-31)`

define CUBRID_LOG_INVALID_LEVEL

#define CUBRID_LOG_INVALID_LEVEL `(-22)`

define CUBRID_LOG_INVALID_LOGITEM_LIST

#define CUBRID_LOG_INVALID_LOGITEM_LIST `(-4)`

define CUBRID_LOG_INVALID_LSA

#define CUBRID_LOG_INVALID_LSA `(-5)`

define CUBRID_LOG_INVALID_MAX_LOG_ITEM

#define CUBRID_LOG_INVALID_MAX_LOG_ITEM `(-20)`

define CUBRID_LOG_INVALID_OUT_PARAM

#define CUBRID_LOG_INVALID_OUT_PARAM `(-8)`

define CUBRID_LOG_INVALID_PASSWORD

#define CUBRID_LOG_INVALID_PASSWORD `(-32)`

define CUBRID_LOG_INVALID_PATH

#define CUBRID_LOG_INVALID_PATH `(-23)`

define CUBRID_LOG_INVALID_PORT

#define CUBRID_LOG_INVALID_PORT `(-11)`

define CUBRID_LOG_INVALID_RETRIEVE_ALL

#define CUBRID_LOG_INVALID_RETRIEVE_ALL `(-19)`

define CUBRID_LOG_INVALID_TIMESTAMP

#define CUBRID_LOG_INVALID_TIMESTAMP `(-9)`

define CUBRID_LOG_INVALID_USER

#define CUBRID_LOG_INVALID_USER `(-16)`

define CUBRID_LOG_INVALID_USER_ARR_SIZE

#define CUBRID_LOG_INVALID_USER_ARR_SIZE `(-15)`

define CUBRID_LOG_LSA_NOT_FOUND

#define CUBRID_LOG_LSA_NOT_FOUND `(-7)`

define CUBRID_LOG_MAX_DBNAME_LEN

#define CUBRID_LOG_MAX_DBNAME_LEN `64`

define CUBRID_LOG_NO_FILE_PERMISSION

#define CUBRID_LOG_NO_FILE_PERMISSION `(-24)`

define CUBRID_LOG_SUCCESS

#define CUBRID_LOG_SUCCESS `(0)`

define CUBRID_LOG_SUCCESS_WITH_ADJUSTED_LSA

#define CUBRID_LOG_SUCCESS_WITH_ADJUSTED_LSA `(2)`

define CUBRID_LOG_SUCCESS_WITH_NO_LOGITEM

#define CUBRID_LOG_SUCCESS_WITH_NO_LOGITEM `(1)`

define CUBRID_LOG_UNAVAILABLE_CDC_SERVER

#define CUBRID_LOG_UNAVAILABLE_CDC_SERVER `(-34)`


The documentation for this class was generated from the following file cubrid/src/api/cubrid_log.h