CUBRID Engine  latest
query_cl.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  * Query processor main interface
21  */
22 
23 #ifndef _QUERY_CL_H_
24 #define _QUERY_CL_H_
25 
26 #include "parse_tree.h"
27 
28 #if defined (SERVER_MODE)
29 #error Does not belong to server module
30 #endif /* defined (SERVER_MODE) */
31 
32 // forward definition
33 struct compile_context;
34 struct xasl_stream;
35 
36 extern int prepare_query (compile_context * context, xasl_stream * stream);
37 extern int execute_query (const XASL_ID * xasl_id, QUERY_ID * query_idp, int var_cnt, const DB_VALUE * varptr,
38  QFILE_LIST_ID ** list_idp, QUERY_FLAG flag, CACHE_TIME * clt_cache_time,
39  CACHE_TIME * srv_cache_time);
40 extern int prepare_and_execute_query (char *stream, int stream_size, QUERY_ID * query_id, int var_cnt,
41  DB_VALUE * varptr, QFILE_LIST_ID ** result, QUERY_FLAG flag);
42 
43 #endif /* _QUERY_CL_H_ */
int prepare_query(compile_context *context, xasl_stream *stream)
Definition: query_cl.c:52
int prepare_and_execute_query(char *stream, int stream_size, QUERY_ID *query_id, int var_cnt, DB_VALUE *varptr, QFILE_LIST_ID **result, QUERY_FLAG flag)
Definition: query_cl.c:152
int execute_query(const XASL_ID *xasl_id, QUERY_ID *query_idp, int var_cnt, const DB_VALUE *varptr, QFILE_LIST_ID **list_idp, QUERY_FLAG flag, CACHE_TIME *clt_cache_time, CACHE_TIME *srv_cache_time)
Definition: query_cl.c:105
int QUERY_FLAG
Definition: query_list.h:585