MySQL 8.3.0
Source Code Documentation
client_settings.h
Go to the documentation of this file.
1/* Copyright (c) 2003, 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#ifndef CLIENT_SETTINGS_INCLUDED
24#define CLIENT_SETTINGS_INCLUDED
25#else
26#error You have already included an client_settings.h and it should not be included twice
27#endif /* CLIENT_SETTINGS_INCLUDED */
28
29#include "my_macros.h"
30#include "mysql.h"
31
32extern uint mysql_port;
33extern char *mysql_unix_port;
34
35/*
36 Note: CLIENT_CAPABILITIES is also defined in sql/client_settings.h.
37 When adding capabilities here, consider if they should be also added to
38 the server's version.
39*/
40#define CLIENT_CAPABILITIES \
41 (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG | CLIENT_TRANSACTIONS | \
42 CLIENT_PROTOCOL_41 | CLIENT_RESERVED2 | CLIENT_MULTI_RESULTS | \
43 CLIENT_PS_MULTI_RESULTS | CLIENT_PLUGIN_AUTH | \
44 CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA | CLIENT_CONNECT_ATTRS | \
45 CLIENT_SESSION_TRACK | CLIENT_DEPRECATE_EOF | CLIENT_QUERY_ATTRIBUTES | \
46 MULTI_FACTOR_AUTHENTICATION)
47
48void read_user_name(char *name);
49bool handle_local_infile(MYSQL *mysql, const char *net_filename);
50
52 const char *filename,
53 const char *group);
54void mysql_detach_stmt_list(LIST **stmt_list, const char *func_name);
56 const char *user, const char *passwd,
57 const char *db, uint port,
58 const char *unix_socket,
59 ulong client_flag);
60
62
64MYSQL_DATA *cli_read_rows(MYSQL *mysql, MYSQL_FIELD *mysql_fields, uint fields);
67int cli_unbuffered_fetch(MYSQL *mysql, char **row);
68const char *cli_read_statistics(MYSQL *mysql);
70
void mysql_detach_stmt_list(LIST **stmt_list, const char *func_name)
Definition: client.cc:7553
bool handle_local_infile(MYSQL *mysql, const char *net_filename)
Definition: libmysql.cc:421
int mysql_init_character_set(MYSQL *mysql)
Definition: client.cc:3905
int cli_read_binary_rows(MYSQL_STMT *stmt)
Definition: libmysql.cc:3841
int cli_stmt_execute(MYSQL_STMT *stmt)
Definition: libmysql.cc:1719
void cli_mysql_close(MYSQL *mysql)
void read_user_name(char *name)
Definition: libmysql.cc:350
uint mysql_port
Definition: client.cc:217
bool cli_read_prepare_result(MYSQL *mysql, MYSQL_STMT *stmt)
Definition: libmysql.cc:1148
MYSQL_DATA * cli_read_rows(MYSQL *mysql, MYSQL_FIELD *mysql_fields, uint fields)
const char * cli_read_statistics(MYSQL *mysql)
Definition: libmysql.cc:748
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:218
int cli_unbuffered_fetch(MYSQL *mysql, char **row)
Definition: libmysql.cc:3747
int cli_read_change_user_result(MYSQL *mysql)
Definition: client.cc:3177
void mysql_read_default_options(struct st_mysql_options *options, const char *filename, const char *group)
Definition: client.cc:2111
#define STDCALL
Definition: my_compiler.h:144
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:64
const char * host
Definition: mysqladmin.cc:63
Definition: instrumented_condition_variable.h:31
Definition: options.cc:56
const char * filename
Definition: pfs_example_component_population.cc:66
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:32
case opt name
Definition: sslopt-case.h:32
Definition: my_list.h:35
Definition: mysql.h:160
Definition: mysql.h:120
Definition: mysql.h:679
Definition: mysql.h:297
Definition: mysql.h:223