MySQL 8.3.0
Source Code Documentation
mysql_command_backend.h
Go to the documentation of this file.
1/* Copyright (c) 2022, 2023, 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 also distributed 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 included with MySQL.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License, version 2.0, for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24#ifndef MYSQL_COMMAND_BACKEND_H
25#define MYSQL_COMMAND_BACKEND_H
26
27#include <include/sql_common.h>
28#include <sql-common/client_async_authentication.h> // mysql_state_machine_status
29
30namespace cs {
32
33/**
34command service state machine.
35*/
37
41 const uchar *header, size_t header_length,
42 const uchar *arg, size_t arg_length, bool skip_check,
43 MYSQL_STMT *stmt);
47 MYSQL_FIELD *mysql_fields [[maybe_unused]],
48 unsigned int fields [[maybe_unused]]);
50void csi_fetch_lengths(ulong *to, MYSQL_ROW column, unsigned int field_count);
52
53} // namespace cs
54
55#endif // MYSQL_COMMAND_BACKEND_H
mysql_state_machine_status
Definition: client_async_authentication.h:64
enum_server_command
A list of all MySQL protocol commands.
Definition: my_command.h:47
unsigned char uchar
Definition: my_inttypes.h:51
char ** MYSQL_ROW
Definition: mysql.h:142
Definition: commit_order_queue.h:33
MYSQL_DATA * csi_read_rows(MYSQL *mysql, MYSQL_FIELD *mysql_fields, unsigned int fields)
Definition: mysql_command_backend.cc:325
void csi_fetch_lengths(ulong *to, MYSQL_ROW column, unsigned int field_count)
Definition: mysql_command_backend.cc:334
void csi_flush_use_result(MYSQL *, bool)
Definition: mysql_command_backend.cc:346
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:270
MYSQL_RES * csi_use_result(MYSQL *mysql)
Definition: mysql_command_backend.cc:332
mysql_state_machine_status cssm_begin_connect(mysql_async_connect *ctx)
command service state machine.
Definition: mysql_command_backend.cc:194
MYSQL_METHODS mysql_methods
Definition: mysql_command_backend.cc:43
MYSQL_ROW csi_fetch_row(MYSQL_RES *res)
Definition: mysql_command_backend.cc:356
MYSQL * csi_connect(mysql_async_connect *ctx)
Definition: mysql_command_backend.cc:258
int csi_read_change_user_result(MYSQL *)
Definition: mysql_command_backend.cc:352
bool csi_read_query_result(MYSQL *mysql)
Definition: mysql_command_backend.cc:264
Definition: instrumented_condition_variable.h:31
Definition: mysql.h:160
Definition: mysql.h:120
Definition: sql_common.h:198
Definition: mysql.h:337
Definition: mysql.h:679
Definition: mysql.h:297
Definition: client_async_authentication.h:163
command
Definition: version_token.cc:279