CUBRID Engine  latest
esql_translate.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 
20 /*
21  * esql_translate.h - ESQL C Translator Inclusion header file
22  */
23 
24 #ifndef _ESQL_TRANSLATE_H_
25 #define _ESQL_TRANSLATE_H_
26 
27 #ident "$Id$"
28 
29 #include <stdio.h>
30 #include "esql_host_variable.h"
31 
33 
35 {
36  void (*tr_connect) (HOST_REF * db_name, HOST_REF * user_name, HOST_REF * passwd);
37  void (*tr_disconnect) (void);
38  void (*tr_commit) (void);
39  void (*tr_rollback) (void);
40  void (*tr_static) (const char *stmt, int length, bool repeat, int num_in_vars, HOST_REF * in_vars,
41  const char *in_desc_name, int num_out_vars, HOST_REF * out_vars, const char *out_desc_name);
42  void (*tr_open_cs) (int cs_no, const char *stmt, int length, int stmt_no, bool readonly, int num_in_vars,
43  HOST_REF * in_vars, const char *desc_name);
44  void (*tr_fetch_cs) (int cs_no, int num_out_vars, HOST_REF * out_vars, const char *desc_name);
45  void (*tr_update_cs) (int cs_no, const char *text, int length, bool repetitive, int num_in_vars, HOST_REF * in_vars);
46  void (*tr_delete_cs) (int cs_no);
47  void (*tr_close_cs) (int cs_no);
48  void (*tr_prepare_esql) (int stmt_no, HOST_REF * stmt);
49  void (*tr_describe) (int stmt_no, const char *desc_name);
50  void (*tr_execute) (int stmt_no, int num_in_vars, HOST_REF * in_vars, const char *in_desc_name, int num_out_vars,
51  HOST_REF * out_vars, const char *out_desc_name);
52  void (*tr_execute_immediate) (HOST_REF * stmt);
53  void (*tr_object_describe) (HOST_REF * obj, int num_attrs, const char **attr_names, const char *desc_name);
54  void (*tr_object_fetch) (HOST_REF * obj, int num_attrs, const char **attr_names, int num_out_vars,
55  HOST_REF * out_vars, const char *desc_name);
56  void (*tr_object_update) (const char *set_expr, int length, bool repetitive, int num_in_vars, HOST_REF * in_vars);
57  void (*tr_whenever) (WHEN_CONDITION condition, WHEN_ACTION action, const char *name);
58  void (*tr_set_out_stream) (FILE * out_stream);
59  void (*tr_set_line_terminator) (const char *);
60 };
61 #ifdef __cplusplus
62 extern "C"
63 {
64 #endif
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif /* _ESQL_TRANSLATE_H_ */
void(* tr_object_fetch)(HOST_REF *obj, int num_attrs, const char **attr_names, int num_out_vars, HOST_REF *out_vars, const char *desc_name)
void(* tr_static)(const char *stmt, int length, bool repeat, int num_in_vars, HOST_REF *in_vars, const char *in_desc_name, int num_out_vars, HOST_REF *out_vars, const char *out_desc_name)
ESQL_TRANSLATE_TABLE esql_Translate_table
void(* tr_open_cs)(int cs_no, const char *stmt, int length, int stmt_no, bool readonly, int num_in_vars, HOST_REF *in_vars, const char *desc_name)
enum when_action WHEN_ACTION
void(* tr_whenever)(WHEN_CONDITION condition, WHEN_ACTION action, const char *name)
void(* tr_object_describe)(HOST_REF *obj, int num_attrs, const char **attr_names, const char *desc_name)
void(* tr_disconnect)(void)
void(* tr_object_update)(const char *set_expr, int length, bool repetitive, int num_in_vars, HOST_REF *in_vars)
void(* tr_close_cs)(int cs_no)
char * db_name
enum when_condition WHEN_CONDITION
void(* tr_prepare_esql)(int stmt_no, HOST_REF *stmt)
void(* tr_update_cs)(int cs_no, const char *text, int length, bool repetitive, int num_in_vars, HOST_REF *in_vars)
void(* tr_rollback)(void)
void(* tr_describe)(int stmt_no, const char *desc_name)
void(* tr_connect)(HOST_REF *db_name, HOST_REF *user_name, HOST_REF *passwd)
void(* tr_commit)(void)
void(* tr_execute_immediate)(HOST_REF *stmt)
void(* tr_delete_cs)(int cs_no)
void(* tr_set_out_stream)(FILE *out_stream)
void(* tr_execute)(int stmt_no, int num_in_vars, HOST_REF *in_vars, const char *in_desc_name, int num_out_vars, HOST_REF *out_vars, const char *out_desc_name)
void(* tr_set_line_terminator)(const char *)
void(* tr_fetch_cs)(int cs_no, int num_out_vars, HOST_REF *out_vars, const char *desc_name)