MySQL 8.0.31
Source Code Documentation
row0import.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 2012, 2022, Oracle and/or its affiliates.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License, version 2.0, as published by the
7Free Software Foundation.
8
9This program is also distributed with certain software (including but not
10limited to OpenSSL) that is licensed under separate terms, as designated in a
11particular file or component or in included license documentation. The authors
12of MySQL hereby grant you an additional permission to link the program and
13your derivative works with the separately licensed software that they have
14included with MySQL.
15
16This program is distributed in the hope that it will be useful, but WITHOUT
17ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
19for more details.
20
21You should have received a copy of the GNU General Public License along with
22this program; if not, write to the Free Software Foundation, Inc.,
2351 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
25*****************************************************************************/
26
27/** @file include/row0import.h
28 Header file for import tablespace functions.
29
30 Created 2012-02-08 by Sunny Bains
31 *******************************************************/
32
33#ifndef row0import_h
34#define row0import_h
35
36#include "dict0types.h"
37#include "univ.i"
38
39// Forward declarations
40struct trx_t;
41struct dict_table_t;
42struct row_prebuilt_t;
43
44/** Imports a tablespace. The space id in the .ibd file must match the space id
45of the table in the data dictionary.
46@param[in] table table
47@param[in] table_def dd table
48@param[in] prebuilt prebuilt struct in MySQL
49@return error code or DB_SUCCESS */
52 row_prebuilt_t *prebuilt);
53
54#endif /* row0import_h */
Definition: table.h:46
A table definition from the master.
Definition: rpl_utility.h:247
dberr_t
Definition: db0err.h:38
Data dictionary global types.
dberr_t row_import_for_mysql(dict_table_t *table, dd::Table *table_def, row_prebuilt_t *prebuilt)
Imports a tablespace.
Definition: row0import.cc:4348
Data structure for a database table.
Definition: dict0mem.h:1884
A struct for (sometimes lazily) prebuilt structures in an Innobase table handle used within MySQL; th...
Definition: row0mysql.h:514
dict_table_t * table
Innobase table handle.
Definition: row0mysql.h:519
Definition: trx0trx.h:680
Version control for database, common definitions, and include files.