1/* Copyright (C) 2010-2014 Kentoku Shiba
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; version 2 of the License.
6
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 GNU General Public License for more details.
11
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software
14 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
15
16int spider_udf_set_copy_tables_param_default(
17 SPIDER_COPY_TABLES *copy_tables
18);
19
20int spider_udf_parse_copy_tables_param(
21 SPIDER_COPY_TABLES *copy_tables,
22 char *param,
23 int param_length
24);
25
26int spider_udf_get_copy_tgt_tables(
27 THD *thd,
28 SPIDER_COPY_TABLES *copy_tables,
29 MEM_ROOT *mem_root,
30 bool need_lock
31);
32
33int spider_udf_get_copy_tgt_conns(
34 SPIDER_COPY_TABLES *copy_tables
35);
36
37void spider_udf_free_copy_tables_alloc(
38 SPIDER_COPY_TABLES *copy_tables
39);
40
41int spider_udf_copy_tables_create_table_list(
42 SPIDER_COPY_TABLES *copy_tables,
43 char *spider_table_name,
44 uint spider_table_name_length,
45 char *src_link_idx_list,
46 uint src_link_idx_list_length,
47 char *dst_link_idx_list,
48 uint dst_link_idx_list_length
49);
50
51#ifndef WITHOUT_SPIDER_BG_SEARCH
52int spider_udf_bg_copy_exec_sql(
53 SPIDER_COPY_TABLE_CONN *table_conn
54);
55#endif
56