CUBRID Engine  latest
csql_session.c File Reference
#include "config.h"
#include <stdarg.h>
#include <string.h>
#include <signal.h>
#include <assert.h>
#include "csql.h"
#include "class_description.hpp"
#include "porting.h"
#include "memory_alloc.h"
#include "object_print.h"
#include "util_func.h"
#include "network_interface_cl.h"
#include "unicode_support.h"
#include "transaction_cl.h"
#include "trigger_description.hpp"
#include "db.h"
Include dependency graph for csql_session.c:

Go to the source code of this file.

Classes

struct  SESSION_CMD_TABLE
 

Macros

#define APPEND_MORE_LINE(indent, line)
 
#define APPEND_HEAD_LINE(head_text)
 
#define CMD_EMPTY_FLAG   0x00000000
 
#define CMD_CHECK_CONNECT   0x00000001
 

Functions

static void csql_pipe_handler (int sig_no)
 
static void csql_dump_alltran (volatile TRANS_INFO *info)
 
int csql_get_session_cmd_no (const char *input)
 
void csql_help_menu (void)
 
void csql_help_schema (const char *class_name)
 
void csql_help_trigger (const char *trigger_name)
 
void csql_help_info (const char *command, int aucommit_flag)
 
void csql_killtran (const char *argument)
 

Variables

static jmp_buf csql_Jmp_buf
 
static SESSION_CMD_TABLE csql_Session_cmd_table []
 

Macro Definition Documentation

#define APPEND_HEAD_LINE (   head_text)
Value:
do { \
APPEND_MORE_LINE(1, (head_text)); \
} while(0)
#define APPEND_MORE_LINE(indent, line)
Definition: csql_session.c:46

Definition at line 51 of file csql_session.c.

Referenced by csql_help_schema(), and csql_help_trigger().

#define APPEND_MORE_LINE (   indent,
  line 
)
Value:
do { \
if(csql_append_more_line((indent), (line)) == CSQL_FAILURE) \
goto error; \
} while(0)
int csql_append_more_line(int indent, const char *line)
Definition: csql_support.c:550
if(extra_options)
Definition: dynamic_load.c:958
static void error(const char *msg)
Definition: gencat.c:331

Definition at line 46 of file csql_session.c.

Referenced by csql_help_schema(), and csql_help_trigger().

#define CMD_CHECK_CONNECT   0x00000001

Definition at line 65 of file csql_session.c.

Referenced by csql_get_session_cmd_no().

#define CMD_EMPTY_FLAG   0x00000000

Definition at line 64 of file csql_session.c.

Function Documentation

int csql_get_session_cmd_no ( const char *  input)
void csql_help_schema ( const char *  class_name)

Definition at line 221 of file csql_session.c.

References APPEND_HEAD_LINE, APPEND_MORE_LINE, assert, class_description::attributes, class_description::class_attributes, class_description::class_methods, class_description::class_type, class_description::constraints, csql_display_csql_err(), csql_display_more_lines(), CSQL_ERR_CLASS_NAME_MISSED, CSQL_ERR_NO_MORE_MEMORY, CSQL_ERR_SQL_ERROR, CSQL_ERR_TOO_LONG_LINE, csql_Error_code, csql_free_more_lines(), CSQL_HELP_ATTRIBUTE_HEAD_TEXT, CSQL_HELP_CLASS_ATTRIBUTE_HEAD_TEXT, CSQL_HELP_CLASS_HEAD_TEXT, CSQL_HELP_CLASS_METHOD_HEAD_TEXT, CSQL_HELP_CONSTRAINT_HEAD_TEXT, CSQL_HELP_METHFILE_HEAD_TEXT, CSQL_HELP_METHOD_HEAD_TEXT, CSQL_HELP_NONE_TEXT, CSQL_HELP_PARTITION_HEAD_TEXT, CSQL_HELP_QUERY_SPEC_HEAD_TEXT, CSQL_HELP_RESOLUTION_HEAD_TEXT, CSQL_HELP_SCHEMA_TITLE_TEXT, CSQL_HELP_SUB_CLASS_HEAD_TEXT, CSQL_HELP_SUPER_CLASS_HEAD_TEXT, CSQL_HELP_TRIGGER_HEAD_TEXT, csql_Scratch_text, DB_MAX_IDENTIFIER_LENGTH, error(), free_and_init, class_description::init(), INTL_CODESET_UTF8, intl_identifier_fix(), lang_get_generic_unicode_norm(), LANG_SYS_CODESET, class_description::method_files, class_description::methods, MSGCAT_CATALOG_CSQL, MSGCAT_CSQL_SET_CSQL, msgcat_message(), class_description::name, NO_ERROR, nonscr_display_error(), NULL, class_description::object_id, class_description::partition, class_description::query_spec, class_description::resolutions, SCRATCH_TEXT_LEN, strlen, class_description::subs, class_description::supers, class_description::triggers, unicode_compose_string(), and unicode_string_need_compose().

Referenced by csql_do_session_cmd().

Here is the caller graph for this function:

void csql_help_trigger ( const char *  trigger_name)
static void csql_pipe_handler ( int  sig_no)
static

Definition at line 628 of file csql_session.c.

References csql_Jmp_buf.

Referenced by csql_killtran().

Here is the caller graph for this function:

Variable Documentation

jmp_buf csql_Jmp_buf
static

Definition at line 58 of file csql_session.c.

Referenced by csql_dump_alltran(), and csql_pipe_handler().

SESSION_CMD_TABLE csql_Session_cmd_table[]
static

Definition at line 75 of file csql_session.c.