MySQL 8.0.39
Source Code Documentation
mysql_command_backend.h
Go to the documentation of this file.
1/* Copyright (c) 2022, 2024, Oracle and/or its affiliates.
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 MySQL 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, version 2.0, for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 */
24
25#ifndef MYSQL_COMMAND_BACKEND_H
26#define MYSQL_COMMAND_BACKEND_H
27
28#include <include/sql_common.h>
29#include <sql-common/client_async_authentication.h> // mysql_state_machine_status
30
31namespace cs {
33
34/**
35command service state machine.
36*/
38
42 const uchar *header, size_t header_length,
43 const uchar *arg, size_t arg_length, bool skip_check,
44 MYSQL_STMT *stmt);
48 MYSQL_FIELD *mysql_fields [[maybe_unused]],
49 unsigned int fields [[maybe_unused]]);
51void csi_fetch_lengths(ulong *to, MYSQL_ROW column, unsigned int field_count);
53
54} // namespace cs
55
56#endif // MYSQL_COMMAND_BACKEND_H
mysql_state_machine_status
Definition: client_async_authentication.h:63
enum_server_command
A list of all MySQL protocol commands.
Definition: my_command.h:48
unsigned char uchar
Definition: my_inttypes.h:52
char ** MYSQL_ROW
Definition: mysql.h:145
Definition: commit_order_queue.h:34
MYSQL_DATA * csi_read_rows(MYSQL *mysql, MYSQL_FIELD *mysql_fields, unsigned int fields)
Definition: mysql_command_backend.cc:312
void csi_fetch_lengths(ulong *to, MYSQL_ROW column, unsigned int field_count)
Definition: mysql_command_backend.cc:321
void csi_flush_use_result(MYSQL *, bool)
Definition: mysql_command_backend.cc:333
bool csi_advanced_command(MYSQL *mysql, enum enum_server_command command, const uchar *, size_t, const uchar *arg, size_t arg_length, bool, MYSQL_STMT *)
Definition: mysql_command_backend.cc:257
MYSQL_RES * csi_use_result(MYSQL *mysql)
Definition: mysql_command_backend.cc:319
mysql_state_machine_status cssm_begin_connect(mysql_async_connect *ctx)
command service state machine.
Definition: mysql_command_backend.cc:66
MYSQL_METHODS mysql_methods
Definition: mysql_command_backend.cc:43
MYSQL_ROW csi_fetch_row(MYSQL_RES *res)
Definition: mysql_command_backend.cc:343
MYSQL * csi_connect(mysql_async_connect *ctx)
Definition: mysql_command_backend.cc:245
int csi_read_change_user_result(MYSQL *)
Definition: mysql_command_backend.cc:339
bool csi_read_query_result(MYSQL *mysql)
Definition: mysql_command_backend.cc:251
Definition: instrumented_condition_variable.h:32
Definition: mysql.h:163
Definition: mysql.h:121
Definition: sql_common.h:193
Definition: mysql.h:339
Definition: mysql.h:683
Definition: mysql.h:299
Definition: client_async_authentication.h:162
command
Definition: version_token.cc:280