MySQL 8.4.2
Source Code Documentation
client_settings.h
Go to the documentation of this file.
1/* Copyright (c) 2003, 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#ifndef CLIENT_SETTINGS_INCLUDED
25#define CLIENT_SETTINGS_INCLUDED
26#else
27#error You have already included an client_settings.h and it should not be included twice
28#endif /* CLIENT_SETTINGS_INCLUDED */
29
30#include "my_macros.h"
31#include "mysql.h"
32
33extern uint mysql_port;
34extern char *mysql_unix_port;
35
36/*
37 Note: CLIENT_CAPABILITIES is also defined in sql/client_settings.h.
38 When adding capabilities here, consider if they should be also added to
39 the server's version.
40*/
41#define CLIENT_CAPABILITIES \
42 (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG | CLIENT_TRANSACTIONS | \
43 CLIENT_PROTOCOL_41 | CLIENT_RESERVED2 | CLIENT_MULTI_RESULTS | \
44 CLIENT_PS_MULTI_RESULTS | CLIENT_PLUGIN_AUTH | \
45 CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA | CLIENT_CONNECT_ATTRS | \
46 CLIENT_SESSION_TRACK | CLIENT_DEPRECATE_EOF | CLIENT_QUERY_ATTRIBUTES | \
47 MULTI_FACTOR_AUTHENTICATION)
48
49void read_user_name(char *name);
50bool handle_local_infile(MYSQL *mysql, const char *net_filename);
51
53 const char *filename,
54 const char *group);
55void mysql_detach_stmt_list(LIST **stmt_list, const char *func_name);
57 const char *user, const char *passwd,
58 const char *db, uint port,
59 const char *unix_socket,
60 ulong client_flag);
61
63
66MYSQL_DATA *cli_read_rows(MYSQL *mysql, MYSQL_FIELD *mysql_fields, uint fields);
69int cli_unbuffered_fetch(MYSQL *mysql, char **row);
70const char *cli_read_statistics(MYSQL *mysql);
72
void mysql_detach_stmt_list(LIST **stmt_list, const char *func_name)
Definition: client.cc:7618
bool handle_local_infile(MYSQL *mysql, const char *net_filename)
Definition: libmysql.cc:423
int mysql_init_character_set(MYSQL *mysql)
Definition: client.cc:3970
int cli_read_binary_rows(MYSQL_STMT *stmt)
Definition: libmysql.cc:3954
int cli_stmt_execute(MYSQL_STMT *stmt)
Definition: libmysql.cc:1841
void cli_mysql_close(MYSQL *mysql)
void read_user_name(char *name)
Definition: libmysql.cc:352
uint mysql_port
Definition: client.cc:219
bool cli_read_prepare_result(MYSQL *mysql, MYSQL_STMT *stmt)
Definition: libmysql.cc:1262
MYSQL_DATA * cli_read_rows(MYSQL *mysql, MYSQL_FIELD *mysql_fields, uint fields)
MYSQL_FIELD * cli_list_fields(MYSQL *mysql)
Definition: libmysql.cc:737
const char * cli_read_statistics(MYSQL *mysql)
Definition: libmysql.cc:862
MYSQL *STDCALL cli_mysql_real_connect(MYSQL *mysql, const char *host, const char *user, const char *passwd, const char *db, uint port, const char *unix_socket, ulong client_flag)
char * mysql_unix_port
Definition: client.cc:220
int cli_unbuffered_fetch(MYSQL *mysql, char **row)
Definition: libmysql.cc:3860
int cli_read_change_user_result(MYSQL *mysql)
Definition: client.cc:3220
void mysql_read_default_options(struct st_mysql_options *options, const char *filename, const char *group)
Definition: client.cc:2112
#define STDCALL
Definition: my_compiler.h:145
Some common macros.
This file defines the client API to MySQL and also the ABI of the dynamically linked libmysqlclient.
char * user
Definition: mysqladmin.cc:66
const char * host
Definition: mysqladmin.cc:65
Definition: instrumented_condition_variable.h:32
Definition: options.cc:57
const char * filename
Definition: pfs_example_component_population.cc:67
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:33
case opt name
Definition: sslopt-case.h:29
Definition: my_list.h:36
Definition: mysql.h:163
Definition: mysql.h:121
Definition: mysql.h:692
Definition: mysql.h:300
Definition: mysql.h:226