Skip to main content

mysql_handler/
sys_bindings.rs

1// Copyright (C) 2026 ren-yamanashi
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, version 2.0,
5// as published by the Free Software Foundation.
6//
7// This program is designed to work with certain software (including
8// but not limited to OpenSSL) that is licensed under separate terms,
9// as designated in a particular file or component or in included license
10// documentation. The authors of this program hereby grant you an additional
11// permission to link the program and your derivative works with the
12// separately licensed software that they have either included with
13// the program or referenced in the documentation.
14//
15// This program is distributed in the hope that it will be useful,
16// but WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with this program; if not, see <https://www.gnu.org/licenses/>.
22
23// Generated by bindgen via `make sys-bindings`. Do not edit by hand.
24
25/* automatically generated by rust-bindgen 0.71.1 */
26
27pub const HA_ERR_FIRST: i32 = 120;
28pub const HA_ERR_KEY_NOT_FOUND: i32 = 120;
29pub const HA_ERR_FOUND_DUPP_KEY: i32 = 121;
30pub const HA_ERR_INTERNAL_ERROR: i32 = 122;
31pub const HA_ERR_RECORD_CHANGED: i32 = 123;
32pub const HA_ERR_WRONG_INDEX: i32 = 124;
33pub const HA_ERR_ROLLED_BACK: i32 = 125;
34pub const HA_ERR_CRASHED: i32 = 126;
35pub const HA_ERR_WRONG_IN_RECORD: i32 = 127;
36pub const HA_ERR_OUT_OF_MEM: i32 = 128;
37pub const HA_ERR_NOT_A_TABLE: i32 = 130;
38pub const HA_ERR_WRONG_COMMAND: i32 = 131;
39pub const HA_ERR_OLD_FILE: i32 = 132;
40pub const HA_ERR_NO_ACTIVE_RECORD: i32 = 133;
41pub const HA_ERR_RECORD_DELETED: i32 = 134;
42pub const HA_ERR_RECORD_FILE_FULL: i32 = 135;
43pub const HA_ERR_INDEX_FILE_FULL: i32 = 136;
44pub const HA_ERR_END_OF_FILE: i32 = 137;
45pub const HA_ERR_UNSUPPORTED: i32 = 138;
46pub const HA_ERR_TOO_BIG_ROW: i32 = 139;
47pub const HA_ERR_FOUND_DUPP_UNIQUE: i32 = 141;
48pub const HA_ERR_UNKNOWN_CHARSET: i32 = 142;
49pub const HA_ERR_WRONG_MRG_TABLE_DEF: i32 = 143;
50pub const HA_ERR_CRASHED_ON_REPAIR: i32 = 144;
51pub const HA_ERR_CRASHED_ON_USAGE: i32 = 145;
52pub const HA_ERR_LOCK_WAIT_TIMEOUT: i32 = 146;
53pub const HA_ERR_LOCK_TABLE_FULL: i32 = 147;
54pub const HA_ERR_READ_ONLY_TRANSACTION: i32 = 148;
55pub const HA_ERR_LOCK_DEADLOCK: i32 = 149;
56pub const HA_ERR_CANNOT_ADD_FOREIGN: i32 = 150;
57pub const HA_ERR_NO_REFERENCED_ROW: i32 = 151;
58pub const HA_ERR_ROW_IS_REFERENCED: i32 = 152;
59pub const HA_ERR_NO_SAVEPOINT: i32 = 153;
60pub const HA_ERR_NON_UNIQUE_BLOCK_SIZE: i32 = 154;
61pub const HA_ERR_NO_SUCH_TABLE: i32 = 155;
62pub const HA_ERR_TABLE_EXIST: i32 = 156;
63pub const HA_ERR_NO_CONNECTION: i32 = 157;
64pub const HA_ERR_NULL_IN_SPATIAL: i32 = 158;
65pub const HA_ERR_TABLE_DEF_CHANGED: i32 = 159;
66pub const HA_ERR_NO_PARTITION_FOUND: i32 = 160;
67pub const HA_ERR_RBR_LOGGING_FAILED: i32 = 161;
68pub const HA_ERR_DROP_INDEX_FK: i32 = 162;
69pub const HA_ERR_FOREIGN_DUPLICATE_KEY: i32 = 163;
70pub const HA_ERR_TABLE_NEEDS_UPGRADE: i32 = 164;
71pub const HA_ERR_TABLE_READONLY: i32 = 165;
72pub const HA_ERR_AUTOINC_READ_FAILED: i32 = 166;
73pub const HA_ERR_AUTOINC_ERANGE: i32 = 167;
74pub const HA_ERR_GENERIC: i32 = 168;
75pub const HA_ERR_RECORD_IS_THE_SAME: i32 = 169;
76pub const HA_ERR_LOGGING_IMPOSSIBLE: i32 = 170;
77pub const HA_ERR_CORRUPT_EVENT: i32 = 171;
78pub const HA_ERR_NEW_FILE: i32 = 172;
79pub const HA_ERR_ROWS_EVENT_APPLY: i32 = 173;
80pub const HA_ERR_INITIALIZATION: i32 = 174;
81pub const HA_ERR_FILE_TOO_SHORT: i32 = 175;
82pub const HA_ERR_WRONG_CRC: i32 = 176;
83pub const HA_ERR_TOO_MANY_CONCURRENT_TRXS: i32 = 177;
84pub const HA_ERR_NOT_IN_LOCK_PARTITIONS: i32 = 178;
85pub const HA_ERR_INDEX_COL_TOO_LONG: i32 = 179;
86pub const HA_ERR_INDEX_CORRUPT: i32 = 180;
87pub const HA_ERR_UNDO_REC_TOO_BIG: i32 = 181;
88pub const HA_ERR_TABLE_IN_FK_CHECK: i32 = 183;
89pub const HA_ERR_TABLESPACE_EXISTS: i32 = 184;
90pub const HA_ERR_TOO_MANY_FIELDS: i32 = 185;
91pub const HA_ERR_ROW_IN_WRONG_PARTITION: i32 = 186;
92pub const HA_ERR_INNODB_READ_ONLY: i32 = 187;
93pub const HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT: i32 = 188;
94pub const HA_ERR_TEMP_FILE_WRITE_FAILURE: i32 = 189;
95pub const HA_ERR_INNODB_FORCED_RECOVERY: i32 = 190;
96pub const HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE: i32 = 191;
97pub const HA_ERR_FK_DEPTH_EXCEEDED: i32 = 192;
98pub const HA_ERR_SE_OUT_OF_MEMORY: i32 = 194;
99pub const HA_ERR_TABLE_CORRUPT: i32 = 195;
100pub const HA_ERR_QUERY_INTERRUPTED: i32 = 196;
101pub const HA_ERR_TABLESPACE_MISSING: i32 = 197;
102pub const HA_ERR_TABLESPACE_IS_NOT_EMPTY: i32 = 198;
103pub const HA_ERR_WRONG_FILE_NAME: i32 = 199;
104pub const HA_ERR_NOT_ALLOWED_COMMAND: i32 = 200;
105pub const HA_ERR_COMPUTE_FAILED: i32 = 201;
106pub const HA_ERR_ROW_FORMAT_CHANGED: i32 = 202;
107pub const HA_ERR_NO_WAIT_LOCK: i32 = 203;
108pub const HA_ERR_DISK_FULL_NOWAIT: i32 = 204;
109pub const HA_ERR_NO_SESSION_TEMP: i32 = 205;
110pub const HA_ERR_WRONG_TABLE_NAME: i32 = 206;
111pub const HA_ERR_TOO_LONG_PATH: i32 = 207;
112pub const HA_ERR_SAMPLING_INIT_FAILED: i32 = 208;
113pub const HA_ERR_FTS_TOO_MANY_NESTED_EXP: i32 = 209;
114pub const HA_ERR_LAST: i32 = 209;
115pub const HA_ERR_ERRORS: i32 = 90;
116pub type Table_flags = ::std::os::raw::c_ulonglong;
117#[repr(i32)]
118#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
119pub enum thr_lock_type {
120  TL_IGNORE = -1,
121  TL_UNLOCK = 0,
122  TL_READ_DEFAULT = 1,
123  TL_READ = 2,
124  TL_READ_WITH_SHARED_LOCKS = 3,
125  TL_READ_HIGH_PRIORITY = 4,
126  TL_READ_NO_INSERT = 5,
127  TL_WRITE_ALLOW_WRITE = 6,
128  TL_WRITE_CONCURRENT_DEFAULT = 7,
129  TL_WRITE_CONCURRENT_INSERT = 8,
130  TL_WRITE_DEFAULT = 9,
131  TL_WRITE_LOW_PRIORITY = 10,
132  TL_WRITE = 11,
133  TL_WRITE_ONLY = 12,
134}