Skip to content

File load_sa_loader.cpp

FileList > cubrid > src > loaddb > load_sa_loader.cpp

Go to the source code of this file

  • #include "config.h"
  • #include <assert.h>
  • #include <ctype.h>
  • #include <errno.h>
  • #include <fcntl.h>
  • #include <fstream>
  • #include <stdarg.h>
  • #include <stdio.h>
  • #include <stdlib.h>
  • #include <string.h>
  • #include <unistd.h>
  • #include "authenticate.h"
  • #include "db.h"
  • #include "db_client_type.hpp"
  • #include "db_json.hpp"
  • #include "dbi.h"
  • #include "dbtype.h"
  • #include "elo.h"
  • #include "environment_variable.h"
  • #include "execute_schema.h"
  • #include "intl_support.h"
  • #include "language_support.h"
  • #include "load_db_value_converter.hpp"
  • #include "load_driver.hpp"
  • #include "load_error_handler.hpp"
  • #include "load_object.h"
  • #include "load_object_table.h"
  • #include "load_sa_loader.hpp"
  • #include "load_scanner.hpp"
  • #include "locator_cl.h"
  • #include "memory_alloc.h"
  • #include "message_catalog.h"
  • #include "network.h"
  • #include "object_accessor.h"
  • #include "object_primitive.h"
  • #include "object_representation.h"
  • #include "porting.h"
  • #include "schema_manager.h"
  • #include "set_object.h"
  • #include "system_parameter.h"
  • #include "thread_manager.hpp"
  • #include "transaction_cl.h"
  • #include "trigger_manager.h"
  • #include "utility.h"
  • #include "work_space.h"
  • #include "schema_system_catalog_constants.h"

Namespaces

Type Name
namespace cubload

Classes

Type Name
struct LDR_ATTDESC
struct ldr_context
struct ldr_mop_tempoid_map
struct ldr_mop_tempoid_maps

Public Types

Type Name
typedef struct LDR_ATTDESC LDR_ATTDESC
typedef struct ldr_context LDR_CONTEXT
typedef int(* LDR_ELEM
typedef struct ldr_mop_tempoid_map LDR_MOP_TEMPOID_MAP
typedef struct ldr_mop_tempoid_maps LDR_MOP_TEMPOID_MAPS
typedef void(* LDR_POST_COMMIT_HANDLER
typedef void(* LDR_POST_INTERRUPT_HANDLER
typedef int(* LDR_SETTER

Public Attributes

Type Name
const std::size_t LDR_MAX_ARGS = 32
void(* ldr_act = [**ldr\_act\_attr**](load__sa__loader_8cpp.md#function-ldr_act_attr)
bool locator_Dont_check_foreign_key

Public Static Attributes

Type Name
DB_OBJECT ** Id_map = [**NULL**](freelistheap_8h.md#define-null)
int Id_map_size = 0
int64_t Last_committed_line = 0
int Total_fails = 0
int64_t Total_objects = 0
int64_t Total_objects_loaded = 0
LDR_ELEM elem_converter
DB_OBJLIST * internal_classes = [**NULL**](freelistheap_8h.md#define-null)
LDR_CONTEXT ldr_Context
LDR_CONTEXT * ldr_Current_context = [**NULL**](freelistheap_8h.md#define-null)
driver * ldr_Driver
const char * ldr_Hint_class_names
LC_PREFETCH_FLAGS ldr_Hint_flags
LOCK ldr_Hint_locks
int ldr_Hint_subclasses
int ldr_Interrupt_type = LDR\_NO\_INTERRUPT
jmp_buf ldr_Jmp_buf
jmp_buf * ldr_Jmp_buf_ptr = [**NULL**](freelistheap_8h.md#define-null)
int ldr_Load_interrupted = LDR\_NO\_INTERRUPT
LDR_MOP_TEMPOID_MAPS * ldr_Mop_tempoid_maps = [**NULL**](freelistheap_8h.md#define-null)
DB_VALUE ldr_bigint_tmpl
DB_VALUE ldr_bit_tmpl
DB_VALUE ldr_blob_tmpl
DB_VALUE ldr_char_tmpl
DB_VALUE ldr_clob_tmpl
DB_VALUE ldr_date_tmpl
DB_VALUE ldr_datetime_tmpl
DB_VALUE ldr_datetimeltz_tmpl
DB_VALUE ldr_datetimetz_tmpl
DB_VALUE ldr_double_tmpl
DB_VALUE ldr_float_tmpl
DB_VALUE ldr_int_tmpl
DB_VALUE ldr_json_tmpl
LDR_POST_COMMIT_HANDLER ldr_post_commit_handler = [**NULL**](freelistheap_8h.md#define-null)
LDR_POST_INTERRUPT_HANDLER ldr_post_interrupt_handler = [**NULL**](freelistheap_8h.md#define-null)
DB_VALUE ldr_short_tmpl
DB_VALUE ldr_time_tmpl
DB_VALUE ldr_timestamp_tmpl
DB_VALUE ldr_timestampltz_tmpl
DB_VALUE ldr_timestamptz_tmpl
DB_VALUE ldr_varchar_tmpl
bool skip_current_class = [**false**](broker__monitor_8c.md#function-timeout)
bool skip_current_instance = [**false**](broker__monitor_8c.md#function-timeout)

Public Functions

Type Name
void ldr_increment_err_total ()
void ldr_increment_fails ()
void ldr_sa_load (load_args * args, int * status, volatile bool * interrupted)

Public Static Functions

Type Name
int add_argument (LDR_CONTEXT * context)
int add_element (void *** elements, int * count, int * max, int grow)
int check_class_domain (LDR_CONTEXT * context)
int check_commit (LDR_CONTEXT * context)
int check_object_domain (LDR_CONTEXT * context, DB_OBJECT * class_, DB_OBJECT ** actual_class)
void clist_final (void)
int clist_init (void)
MOP construct_instance (LDR_CONTEXT * context)
void display_error (int adjust)
void display_error_line (int adjust)
int find_instance (LDR_CONTEXT * context, DB_OBJECT * class_, OID * oid, int id)
void idmap_final (void)
int idmap_grow (int size)
void idmap_init (void)
int insert_instance (LDR_CONTEXT * context)
int insert_meth_instance (LDR_CONTEXT * context)
void invalid_class_id_error (LDR_CONTEXT * context, int id)
int is_internal_class (DB_OBJECT * class_)
void ldr_abort (void)
int ldr_act_add_argument (LDR_CONTEXT * context, const char * name)
void ldr_act_add_attr (LDR_CONTEXT * context, const char * attr_name, size_t len)
int ldr_act_add_class_all_attrs (const char * class_name)
void ldr_act_attr (LDR_CONTEXT * context, const char * str, size_t len, data_type type)
int ldr_act_check_missing_non_null_attrs (LDR_CONTEXT * context)
void ldr_act_class_attr (LDR_CONTEXT * context, const char * str, size_t len, data_type type)
void ldr_act_elem (LDR_CONTEXT * context, const char * str, size_t len, data_type type)
DB_OBJECT * ldr_act_get_ref_class (LDR_CONTEXT * context)
void ldr_act_init_context (LDR_CONTEXT * context, const char * class_name, size_t len)
void ldr_act_meth (LDR_CONTEXT * context, const char * str, size_t len, data_type type)
void ldr_act_restrict_attributes (LDR_CONTEXT * context, attribute_type type)
int ldr_act_set_constructor (LDR_CONTEXT * context, const char * name)
void ldr_act_set_instance_id (LDR_CONTEXT * context, int id)
void ldr_act_set_ref_class (LDR_CONTEXT * context, char * name)
void ldr_act_set_ref_class_id (LDR_CONTEXT * context, int id)
void ldr_act_set_skip_current_class (char * class_name, size_t size)
int ldr_add_mop_tempoid_map (MOP mop, CLASS_TABLE * table, int id)
int ldr_assign_all_perm_oids (void)
int ldr_assign_class_id (DB_OBJECT * class_, int id)
const char * ldr_attr_name (LDR_CONTEXT * context)
int ldr_bstr_db_varbit (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_bstr_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_check_date_time_conversion (const char * str, data_type type)
int ldr_class_attr_db_generic (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att, DB_VALUE * val)
const char * ldr_class_name (LDR_CONTEXT * context)
int ldr_class_oid_db_object (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_class_oid_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
void ldr_clear_and_free_context (LDR_CONTEXT * context)
void ldr_clear_context (LDR_CONTEXT * context)
void ldr_clear_err_count (LDR_CONTEXT * context)
void ldr_clear_err_total (LDR_CONTEXT * context)
int ldr_collection_db_collection (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_collection_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_date_db_date (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_date_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
void ldr_date_time_conversion_error (const char * token, DB_TYPE type)
int ldr_datetime_db_datetime (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_datetime_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_datetimeltz_db_datetimeltz (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_datetimeltz_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_datetimetz_db_datetimetz (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_datetimetz_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_destroy (LDR_CONTEXT * context, int err)
int ldr_double_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_elo_ext_db_elo (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_elo_ext_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_elo_int_db_elo (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_elo_int_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_final (void)
DB_OBJECT * ldr_find_class (const char * class_name)
int ldr_find_class_by_query (const char * name, char * buf, int buf_size)
int ldr_finish_context (LDR_CONTEXT * context)
int ldr_float_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
void ldr_flush (LDR_CONTEXT * context)
int ldr_generic (LDR_CONTEXT * context, DB_VALUE * value)
DB_OBJECT * ldr_get_class_from_id (int id)
void ldr_get_num_of_inserted_objects (int64_t num_objects)
int ldr_ignore (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
void ldr_increment_err_count (LDR_CONTEXT * context, int i)
int ldr_init (load_args * args)
void ldr_init_driver ()
int ldr_init_loader (LDR_CONTEXT * context)
int ldr_int_db_bigint (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_int_db_generic (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_int_db_int (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_int_db_short (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_int_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
void ldr_internal_error (LDR_CONTEXT * context)
void ldr_invalid_class_error (LDR_CONTEXT * context)
bool ldr_is_ignore_class (const char * class_name, size_t size)
int ldr_json_db_json (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_json_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_mismatch (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_monetary_db_monetary (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_monetary_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
void ldr_mop_tempoid_maps_final (void)
int ldr_mop_tempoid_maps_init (void)
int ldr_null_db_generic (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_null_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_numeric_db_generic (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_numeric_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_oid_db_object (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_oid_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
void ldr_process_object_ref (object_ref_type * ref, int type)
int ldr_real_db_double (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_real_db_float (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_real_db_generic (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_refresh_attrs (LDR_CONTEXT * context)
void ldr_register_post_commit_handler ()
void ldr_register_post_interrupt_handler ()
void ldr_report_num_of_commits (int64_t num_committed)
int ldr_reset_context (LDR_CONTEXT * context)
void ldr_restore_pin_and_drop_obj (LDR_CONTEXT * context, bool drop_obj)
void ldr_signal_handler (void)
int ldr_start ()
void ldr_stats (int * errors, int64_t * objects, int * defaults, int64_t * lastcommit, int * fails)
int ldr_str_db_char (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_str_db_generic (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_str_db_varchar (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_str_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_sys_class_db_generic (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_sys_user_db_generic (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_time_db_time (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_time_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_timestamp_db_timestamp (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_timestamp_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_timestampltz_db_timestampltz (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_timestampltz_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_timestamptz_db_timestamptz (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_timestamptz_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
int ldr_update_statistics (void)
int ldr_xstr_db_varbit (LDR_CONTEXT * context, const char * str, size_t len, SM_ATTRIBUTE * att)
int ldr_xstr_elem (LDR_CONTEXT * context, const char * str, size_t len, DB_VALUE * val)
void parse_error (LDR_CONTEXT * context, DB_TYPE token_type, const char * token)
int select_set_domain (LDR_CONTEXT * context, TP_DOMAIN * domain, TP_DOMAIN ** set_domain_ptr)
int update_default_count (CLASS_TABLE * table, OID * oid)
int update_default_instances_stats (LDR_CONTEXT * context)

Macros

Type Name
define CHECK_CONTEXT_VALIDITY (context, expr) /* multi line expression */
define CHECK_ERR (err, expr) /* multi line expression */
define CHECK_PARSE_ERR (err, expr, cont, type, str) /* multi line expression */
define CHECK_PTR (err, expr) /* multi line expression */
define CHECK_SKIP () /* multi line expression */
define CHECK_SKIP_WITH (ret) /* multi line expression */
define CHECK_VALIDATION_ONLY (context) /* multi line expression */
define FILTER_OUT_ERR_INTERNAL (err, expr) ( [**err**](porting_8h.md#define-err) = ((expr) == [**NO\_ERROR**](error__code_8h.md#define-no_error) ? [**NO\_ERROR**](error__code_8h.md#define-no_error) : [**er\_filter\_errid**](load__object_8c.md#function-er_filter_errid)([**false**](broker__monitor_8c.md#function-timeout))) )
define GET_DOMAIN (context, domain) /* multi line expression */
define LDR_ARG_GROW_SIZE 128
define LDR_LOCKHINT_COUNT 1
define LDR_MOP_TEMPOID_MAPS_PRESIZE 1000
define MAX_DIGITS_FOR_BIGINT 19
define MAX_DIGITS_FOR_INT 10
define MAX_DIGITS_FOR_SHORT 5
define PARSE_ELO_STR (str, new_len) /* multi line expression */
define QUERY_BUF_SIZE 2048
define RETURN_IF_NOT_VALID (context) /* multi line expression */
define RETURN_IF_NOT_VALID_WITH (context, ret) /* multi line expression */
define ROUND (x) ([**int**](broker__monitor_8c.md#function-timeout))(([**x**](broker__monitor_8c.md#function-timeout)) &gt; 0 ? (([**x**](broker__monitor_8c.md#function-timeout)) + .5) : (([**x**](broker__monitor_8c.md#function-timeout)) - .5))

Public Types Documentation

typedef LDR_ATTDESC

typedef struct LDR_ATTDESC LDR_ATTDESC;

typedef LDR_CONTEXT

typedef struct ldr_context LDR_CONTEXT;

typedef LDR_ELEM

typedef int(* LDR_ELEM) (LDR_CONTEXT *, const char *, size_t, DB_VALUE *);

typedef LDR_MOP_TEMPOID_MAP

typedef struct ldr_mop_tempoid_map LDR_MOP_TEMPOID_MAP;

typedef LDR_MOP_TEMPOID_MAPS

typedef struct ldr_mop_tempoid_maps LDR_MOP_TEMPOID_MAPS;

typedef LDR_POST_COMMIT_HANDLER

typedef void(* LDR_POST_COMMIT_HANDLER) (int64_t);

typedef LDR_POST_INTERRUPT_HANDLER

typedef void(* LDR_POST_INTERRUPT_HANDLER) (int64_t);

typedef LDR_SETTER

typedef int(* LDR_SETTER) (LDR_CONTEXT *, const char *, size_t, SM_ATTRIBUTE *);

Public Attributes Documentation

variable LDR_MAX_ARGS

const std::size_t LDR_MAX_ARGS;

variable ldr_act

void(* ldr_act) (LDR_CONTEXT *context, const char *str, size_t len, data_type type);

variable locator_Dont_check_foreign_key

bool locator_Dont_check_foreign_key;

Public Static Attributes Documentation

variable Id_map

DB_OBJECT** Id_map;

variable Id_map_size

int Id_map_size;

variable Last_committed_line

int64_t Last_committed_line;

variable Total_fails

int Total_fails;

variable Total_objects

int64_t Total_objects;

variable Total_objects_loaded

int64_t Total_objects_loaded;

variable elem_converter

LDR_ELEM elem_converter[(LDR_TYPE_MAX+1)];

variable internal_classes

DB_OBJLIST* internal_classes;

variable ldr_Context

LDR_CONTEXT ldr_Context;

variable ldr_Current_context

LDR_CONTEXT* ldr_Current_context;

variable ldr_Driver

driver* ldr_Driver;

variable ldr_Hint_class_names

const char* ldr_Hint_class_names[1];

variable ldr_Hint_flags

LC_PREFETCH_FLAGS ldr_Hint_flags[1];

variable ldr_Hint_locks

LOCK ldr_Hint_locks[1];

variable ldr_Hint_subclasses

int ldr_Hint_subclasses[1];

variable ldr_Interrupt_type

int ldr_Interrupt_type;

variable ldr_Jmp_buf

jmp_buf ldr_Jmp_buf;

variable ldr_Jmp_buf_ptr

jmp_buf* ldr_Jmp_buf_ptr;

variable ldr_Load_interrupted

int ldr_Load_interrupted;

variable ldr_Mop_tempoid_maps

LDR_MOP_TEMPOID_MAPS* ldr_Mop_tempoid_maps;

variable ldr_bigint_tmpl

DB_VALUE ldr_bigint_tmpl;

variable ldr_bit_tmpl

DB_VALUE ldr_bit_tmpl;

variable ldr_blob_tmpl

DB_VALUE ldr_blob_tmpl;

variable ldr_char_tmpl

DB_VALUE ldr_char_tmpl;

variable ldr_clob_tmpl

DB_VALUE ldr_clob_tmpl;

variable ldr_date_tmpl

DB_VALUE ldr_date_tmpl;

variable ldr_datetime_tmpl

DB_VALUE ldr_datetime_tmpl;

variable ldr_datetimeltz_tmpl

DB_VALUE ldr_datetimeltz_tmpl;

variable ldr_datetimetz_tmpl

DB_VALUE ldr_datetimetz_tmpl;

variable ldr_double_tmpl

DB_VALUE ldr_double_tmpl;

variable ldr_float_tmpl

DB_VALUE ldr_float_tmpl;

variable ldr_int_tmpl

DB_VALUE ldr_int_tmpl;

variable ldr_json_tmpl

DB_VALUE ldr_json_tmpl;

variable ldr_post_commit_handler

LDR_POST_COMMIT_HANDLER ldr_post_commit_handler;

variable ldr_post_interrupt_handler

LDR_POST_INTERRUPT_HANDLER ldr_post_interrupt_handler;

variable ldr_short_tmpl

DB_VALUE ldr_short_tmpl;

variable ldr_time_tmpl

DB_VALUE ldr_time_tmpl;

variable ldr_timestamp_tmpl

DB_VALUE ldr_timestamp_tmpl;

variable ldr_timestampltz_tmpl

DB_VALUE ldr_timestampltz_tmpl;

variable ldr_timestamptz_tmpl

DB_VALUE ldr_timestamptz_tmpl;

variable ldr_varchar_tmpl

DB_VALUE ldr_varchar_tmpl;

variable skip_current_class

bool skip_current_class;

variable skip_current_instance

bool skip_current_instance;

Public Functions Documentation

function ldr_increment_err_total

void ldr_increment_err_total () 

function ldr_increment_fails

void ldr_increment_fails () 

function ldr_sa_load

void ldr_sa_load (
    load_args * args,
    int * status,
    volatile  bool * interrupted
) 

Public Static Functions Documentation

function add_argument

static int add_argument (
    LDR_CONTEXT * context
) 

function add_element

static int add_element (
    void *** elements,
    int * count,
    int * max,
    int grow
) 

function check_class_domain

static int check_class_domain (
    LDR_CONTEXT * context
) 

function check_commit

static int check_commit (
    LDR_CONTEXT * context
) 

function check_object_domain

static int check_object_domain (
    LDR_CONTEXT * context,
    DB_OBJECT * class_,
    DB_OBJECT ** actual_class
) 

function clist_final

static void clist_final (
    void
) 

function clist_init

static int clist_init (
    void
) 

function construct_instance

static MOP construct_instance (
    LDR_CONTEXT * context
) 

function display_error

static void display_error (
    int adjust
) 

function display_error_line

static void display_error_line (
    int adjust
) 

function find_instance

static int find_instance (
    LDR_CONTEXT * context,
    DB_OBJECT * class_,
    OID * oid,
    int id
) 

function idmap_final

static void idmap_final (
    void
) 

function idmap_grow

static int idmap_grow (
    int size
) 

function idmap_init

static void idmap_init (
    void
) 

function insert_instance

static int insert_instance (
    LDR_CONTEXT * context
) 

function insert_meth_instance

static int insert_meth_instance (
    LDR_CONTEXT * context
) 

function invalid_class_id_error

static void invalid_class_id_error (
    LDR_CONTEXT * context,
    int id
) 

function is_internal_class

static int is_internal_class (
    DB_OBJECT * class_
) 

function ldr_abort

static void ldr_abort (
    void
) 

function ldr_act_add_argument

static int ldr_act_add_argument (
    LDR_CONTEXT * context,
    const  char * name
) 

function ldr_act_add_attr

static void ldr_act_add_attr (
    LDR_CONTEXT * context,
    const  char * attr_name,
    size_t len
) 

function ldr_act_add_class_all_attrs

static int ldr_act_add_class_all_attrs (
    const  char * class_name
) 

function ldr_act_attr

static void ldr_act_attr (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    data_type type
) 

function ldr_act_check_missing_non_null_attrs

static int ldr_act_check_missing_non_null_attrs (
    LDR_CONTEXT * context
) 

function ldr_act_class_attr

static void ldr_act_class_attr (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    data_type type
) 

function ldr_act_elem

static void ldr_act_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    data_type type
) 

function ldr_act_get_ref_class

static DB_OBJECT * ldr_act_get_ref_class (
    LDR_CONTEXT * context
) 

function ldr_act_init_context

static void ldr_act_init_context (
    LDR_CONTEXT * context,
    const  char * class_name,
    size_t len
) 

function ldr_act_meth

static void ldr_act_meth (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    data_type type
) 

function ldr_act_restrict_attributes

static void ldr_act_restrict_attributes (
    LDR_CONTEXT * context,
    attribute_type type
) 

function ldr_act_set_constructor

static int ldr_act_set_constructor (
    LDR_CONTEXT * context,
    const  char * name
) 

function ldr_act_set_instance_id

static void ldr_act_set_instance_id (
    LDR_CONTEXT * context,
    int id
) 

function ldr_act_set_ref_class

static void ldr_act_set_ref_class (
    LDR_CONTEXT * context,
    char * name
) 

function ldr_act_set_ref_class_id

static void ldr_act_set_ref_class_id (
    LDR_CONTEXT * context,
    int id
) 

function ldr_act_set_skip_current_class

static void ldr_act_set_skip_current_class (
    char * class_name,
    size_t size
) 

function ldr_add_mop_tempoid_map

static int ldr_add_mop_tempoid_map (
    MOP mop,
    CLASS_TABLE * table,
    int id
) 

function ldr_assign_all_perm_oids

static int ldr_assign_all_perm_oids (
    void
) 

function ldr_assign_class_id

static int ldr_assign_class_id (
    DB_OBJECT * class_,
    int id
) 

function ldr_attr_name

static const  char * ldr_attr_name (
    LDR_CONTEXT * context
) 

function ldr_bstr_db_varbit

static int ldr_bstr_db_varbit (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_bstr_elem

static int ldr_bstr_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_check_date_time_conversion

static int ldr_check_date_time_conversion (
    const  char * str,
    data_type type
) 

function ldr_class_attr_db_generic

static int ldr_class_attr_db_generic (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att,
    DB_VALUE * val
) 

function ldr_class_name

static const  char * ldr_class_name (
    LDR_CONTEXT * context
) 

function ldr_class_oid_db_object

static int ldr_class_oid_db_object (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_class_oid_elem

static int ldr_class_oid_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_clear_and_free_context

static void ldr_clear_and_free_context (
    LDR_CONTEXT * context
) 

function ldr_clear_context

static void ldr_clear_context (
    LDR_CONTEXT * context
) 

function ldr_clear_err_count

static void ldr_clear_err_count (
    LDR_CONTEXT * context
) 

function ldr_clear_err_total

static void ldr_clear_err_total (
    LDR_CONTEXT * context
) 

function ldr_collection_db_collection

static int ldr_collection_db_collection (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_collection_elem

static int ldr_collection_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_date_db_date

static int ldr_date_db_date (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_date_elem

static int ldr_date_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_date_time_conversion_error

static void ldr_date_time_conversion_error (
    const  char * token,
    DB_TYPE type
) 

function ldr_datetime_db_datetime

static int ldr_datetime_db_datetime (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_datetime_elem

static int ldr_datetime_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_datetimeltz_db_datetimeltz

static int ldr_datetimeltz_db_datetimeltz (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_datetimeltz_elem

static int ldr_datetimeltz_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_datetimetz_db_datetimetz

static int ldr_datetimetz_db_datetimetz (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_datetimetz_elem

static int ldr_datetimetz_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_destroy

static int ldr_destroy (
    LDR_CONTEXT * context,
    int err
) 

function ldr_double_elem

static int ldr_double_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_elo_ext_db_elo

static int ldr_elo_ext_db_elo (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_elo_ext_elem

static int ldr_elo_ext_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_elo_int_db_elo

static int ldr_elo_int_db_elo (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_elo_int_elem

static int ldr_elo_int_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_final

static int ldr_final (
    void
) 

function ldr_find_class

static DB_OBJECT * ldr_find_class (
    const  char * class_name
) 

function ldr_find_class_by_query

static int ldr_find_class_by_query (
    const  char * name,
    char * buf,
    int buf_size
) 

function ldr_finish_context

static int ldr_finish_context (
    LDR_CONTEXT * context
) 

function ldr_float_elem

static int ldr_float_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_flush

static void ldr_flush (
    LDR_CONTEXT * context
) 

function ldr_generic

static int ldr_generic (
    LDR_CONTEXT * context,
    DB_VALUE * value
) 

function ldr_get_class_from_id

static DB_OBJECT * ldr_get_class_from_id (
    int id
) 

function ldr_get_num_of_inserted_objects

static void ldr_get_num_of_inserted_objects (
    int64_t num_objects
) 

function ldr_ignore

static int ldr_ignore (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_increment_err_count

static void ldr_increment_err_count (
    LDR_CONTEXT * context,
    int i
) 

function ldr_init

static int ldr_init (
    load_args * args
) 

function ldr_init_driver

static void ldr_init_driver () 

function ldr_init_loader

static int ldr_init_loader (
    LDR_CONTEXT * context
) 

function ldr_int_db_bigint

static int ldr_int_db_bigint (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_int_db_generic

static int ldr_int_db_generic (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_int_db_int

static int ldr_int_db_int (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_int_db_short

static int ldr_int_db_short (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_int_elem

static int ldr_int_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_internal_error

static void ldr_internal_error (
    LDR_CONTEXT * context
) 

function ldr_invalid_class_error

static void ldr_invalid_class_error (
    LDR_CONTEXT * context
) 

function ldr_is_ignore_class

static bool ldr_is_ignore_class (
    const  char * class_name,
    size_t size
) 

function ldr_json_db_json

static int ldr_json_db_json (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_json_elem

static int ldr_json_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_mismatch

static int ldr_mismatch (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_monetary_db_monetary

static int ldr_monetary_db_monetary (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_monetary_elem

static int ldr_monetary_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_mop_tempoid_maps_final

static void ldr_mop_tempoid_maps_final (
    void
) 

function ldr_mop_tempoid_maps_init

static int ldr_mop_tempoid_maps_init (
    void
) 

function ldr_null_db_generic

static int ldr_null_db_generic (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_null_elem

static int ldr_null_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_numeric_db_generic

static int ldr_numeric_db_generic (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_numeric_elem

static int ldr_numeric_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_oid_db_object

static int ldr_oid_db_object (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_oid_elem

static int ldr_oid_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_process_object_ref

static void ldr_process_object_ref (
    object_ref_type * ref,
    int type
) 

function ldr_real_db_double

static int ldr_real_db_double (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_real_db_float

static int ldr_real_db_float (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_real_db_generic

static int ldr_real_db_generic (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_refresh_attrs

static int ldr_refresh_attrs (
    LDR_CONTEXT * context
) 

function ldr_register_post_commit_handler

static void ldr_register_post_commit_handler () 

function ldr_register_post_interrupt_handler

static void ldr_register_post_interrupt_handler () 

function ldr_report_num_of_commits

static void ldr_report_num_of_commits (
    int64_t num_committed
) 

function ldr_reset_context

static int ldr_reset_context (
    LDR_CONTEXT * context
) 

function ldr_restore_pin_and_drop_obj

static void ldr_restore_pin_and_drop_obj (
    LDR_CONTEXT * context,
    bool drop_obj
) 

function ldr_signal_handler

static void ldr_signal_handler (
    void
) 

function ldr_start

static int ldr_start () 

function ldr_stats

static void ldr_stats (
    int * errors,
    int64_t * objects,
    int * defaults,
    int64_t * lastcommit,
    int * fails
) 

function ldr_str_db_char

static int ldr_str_db_char (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_str_db_generic

static int ldr_str_db_generic (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_str_db_varchar

static int ldr_str_db_varchar (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_str_elem

static int ldr_str_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_sys_class_db_generic

static int ldr_sys_class_db_generic (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_sys_user_db_generic

static int ldr_sys_user_db_generic (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_time_db_time

static int ldr_time_db_time (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_time_elem

static int ldr_time_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_timestamp_db_timestamp

static int ldr_timestamp_db_timestamp (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_timestamp_elem

static int ldr_timestamp_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_timestampltz_db_timestampltz

static int ldr_timestampltz_db_timestampltz (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_timestampltz_elem

static int ldr_timestampltz_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_timestamptz_db_timestamptz

static int ldr_timestamptz_db_timestamptz (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_timestamptz_elem

static int ldr_timestamptz_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function ldr_update_statistics

static int ldr_update_statistics (
    void
) 

function ldr_xstr_db_varbit

static int ldr_xstr_db_varbit (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    SM_ATTRIBUTE * att
) 

function ldr_xstr_elem

static int ldr_xstr_elem (
    LDR_CONTEXT * context,
    const  char * str,
    size_t len,
    DB_VALUE * val
) 

function parse_error

static void parse_error (
    LDR_CONTEXT * context,
    DB_TYPE token_type,
    const  char * token
) 

function select_set_domain

static int select_set_domain (
    LDR_CONTEXT * context,
    TP_DOMAIN * domain,
    TP_DOMAIN ** set_domain_ptr
) 

function update_default_count

static int update_default_count (
    CLASS_TABLE * table,
    OID * oid
) 

function update_default_instances_stats

static int update_default_instances_stats (
    LDR_CONTEXT * context
) 

Macro Definition Documentation

define CHECK_CONTEXT_VALIDITY

#define CHECK_CONTEXT_VALIDITY (
    context,
    expr
) `/* multi line expression */`

define CHECK_ERR

#define CHECK_ERR (
    err,
    expr
) `/* multi line expression */`

define CHECK_PARSE_ERR

#define CHECK_PARSE_ERR (
    err,
    expr,
    cont,
    type,
    str
) `/* multi line expression */`

define CHECK_PTR

#define CHECK_PTR (
    err,
    expr
) `/* multi line expression */`

define CHECK_SKIP

#define CHECK_SKIP (

) `/* multi line expression */`

define CHECK_SKIP_WITH

#define CHECK_SKIP_WITH (
    ret
) `/* multi line expression */`

define CHECK_VALIDATION_ONLY

#define CHECK_VALIDATION_ONLY (
    context
) `/* multi line expression */`

define FILTER_OUT_ERR_INTERNAL

#define FILTER_OUT_ERR_INTERNAL (
    err,
    expr
) `( err = ((expr) == NO_ERROR ? NO_ERROR : er_filter_errid ( false )) )`

define GET_DOMAIN

#define GET_DOMAIN (
    context,
    domain
) `/* multi line expression */`

define LDR_ARG_GROW_SIZE

#define LDR_ARG_GROW_SIZE `128`

define LDR_LOCKHINT_COUNT

#define LDR_LOCKHINT_COUNT `1`

define LDR_MOP_TEMPOID_MAPS_PRESIZE

#define LDR_MOP_TEMPOID_MAPS_PRESIZE `1000`

define MAX_DIGITS_FOR_BIGINT

#define MAX_DIGITS_FOR_BIGINT `19`

define MAX_DIGITS_FOR_INT

#define MAX_DIGITS_FOR_INT `10`

define MAX_DIGITS_FOR_SHORT

#define MAX_DIGITS_FOR_SHORT `5`

define PARSE_ELO_STR

#define PARSE_ELO_STR (
    str,
    new_len
) `/* multi line expression */`

define QUERY_BUF_SIZE

#define QUERY_BUF_SIZE `2048`

define RETURN_IF_NOT_VALID

#define RETURN_IF_NOT_VALID (
    context
) `/* multi line expression */`

define RETURN_IF_NOT_VALID_WITH

#define RETURN_IF_NOT_VALID_WITH (
    context,
    ret
) `/* multi line expression */`

define ROUND

#define ROUND (
    x
) `( int )(( x ) > 0 ? (( x ) + .5) : (( x ) - .5))`


The documentation for this class was generated from the following file cubrid/src/loaddb/load_sa_loader.cpp