Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyMySQL/PyMySQL
/ functions
Functions
364 in github.com/PyMySQL/PyMySQL
⨍
Functions
364
◇
Types & classes
57
↳
Endpoints
2
↓ 97 callers
Method
connect
(self, **params)
pymysql/tests/base.py:70
↓ 91 callers
Method
execute
Execute a query. :param query: Query to execute. :type query: str :param args: Parameters used with query. (optional)
pymysql/cursors.py:149
↓ 90 callers
Method
cursor
Create a new cursor to execute queries with. :param cursor: The type of cursor to create. None means use Cursor. :type curso
pymysql/connections.py:560
↓ 48 callers
Method
fetchone
Fetch the next row.
pymysql/cursors.py:285
↓ 24 callers
Method
close
Closing a cursor just exhausts all remaining data.
pymysql/cursors.py:52
↓ 18 callers
Method
_read_packet
Read an entire "mysql packet" in its entirety from the network and return a MysqlPacket type that represents the results. :raise Oper
pymysql/connections.py:761
↓ 14 callers
Method
get
(self, section, option)
pymysql/optionfile.py:19
↓ 12 callers
Method
fetchall
Fetch all the rows.
pymysql/cursors.py:306
↓ 11 callers
Method
safe_create_table
create a table. Ensures any existing version of that table is first dropped. Also adds a cleanup rule to drop the table after the te
pymysql/tests/base.py:89
↓ 10 callers
Method
connect
(self, sock=None)
pymysql/connections.py:661
↓ 9 callers
Method
_execute_command
:raise InterfaceError: If the connection is closed. :raise ValueError: If no username was specified.
pymysql/connections.py:867
↓ 9 callers
Method
escape
Escape whatever value is passed. Non-standard, for internal use; do not use this in your applications.
pymysql/connections.py:530
↓ 8 callers
Method
_get_db
(self)
pymysql/cursors.py:72
↓ 8 callers
Method
_request_authentication
()
pymysql/tests/test_connection.py:997
↓ 8 callers
Method
executemany
Run several data against one query. :param query: Query to execute. :type query: str :param args: Sequence of sequences or m
pymysql/cursors.py:173
↓ 8 callers
Method
is_ok_packet
(self)
pymysql/protocol.py:181
↓ 8 callers
Method
nextset
(self)
pymysql/cursors.py:104
↓ 7 callers
Method
_check_executed
(self)
pymysql/cursors.py:77
↓ 7 callers
Method
write_packet
Writes an entire "mysql packet" in its entirety to the network adding its length and sequence number.
pymysql/connections.py:749
↓ 6 callers
Method
_force_close
Close connection without QUIT message.
pymysql/connections.py:448
↓ 6 callers
Method
_read_ok_packet
(self)
pymysql/connections.py:471
↓ 6 callers
Method
connection
(self, **kwargs)
pymysql/tests/test_auth_state_machine.py:22
↓ 6 callers
Method
packet
(data)
pymysql/tests/test_auth_state_machine.py:19
↓ 5 callers
Method
commit
Commit changes to stable storage. See `Connection.commit() <https://www.python.org/dev/peps/pep-0249/#commit>`_ in the speci
pymysql/connections.py:494
↓ 5 callers
Method
query
(self, sql, unbuffered=False)
pymysql/connections.py:573
↓ 5 callers
Method
read
(self)
pymysql/connections.py:1286
↓ 5 callers
Method
read_all
Read all remaining data in the packet. (Subsequent read() will return errors.)
pymysql/protocol.py:76
↓ 4 callers
Method
_do_get_result
(self)
pymysql/cursors.py:348
↓ 4 callers
Method
_verify_records
(self, data)
pymysql/tests/test_basic.py:354
↓ 4 callers
Method
check_error
(self)
pymysql/protocol.py:209
↓ 4 callers
Function
dump_packet
(data)
pymysql/protocol.py:20
↓ 4 callers
Method
fetchmany
Fetch several rows.
pymysql/cursors.py:294
↓ 4 callers
Method
get_all_data
(self)
pymysql/protocol.py:58
↓ 4 callers
Method
read_length_encoded_integer
Read a 'Length Coded Binary' number from the data buffer. Length coded numbers can be anywhere from 1 to 9 bytes depending on the val
pymysql/protocol.py:144
↓ 4 callers
Method
read_uint8
(self)
pymysql/protocol.py:111
↓ 3 callers
Method
_check_packet_is_eof
(self, packet)
pymysql/connections.py:1355
↓ 3 callers
Method
_clear_result
(self)
pymysql/cursors.py:338
↓ 3 callers
Function
_convert_second_fraction
(s)
pymysql/converters.py:148
↓ 3 callers
Method
_finish_unbuffered_query
(self)
pymysql/connections.py:1391
↓ 3 callers
Method
_mogrify
Return query after binding args.
pymysql/cursors.py:107
↓ 3 callers
Method
_read_ok_packet
(self, packet)
pymysql/connections.py:1324
↓ 3 callers
Method
_write_bytes
(self, data)
pymysql/connections.py:837
↓ 3 callers
Method
advance
Advance the cursor in data buffer 'length' bytes.
pymysql/protocol.py:85
↓ 3 callers
Method
autocommit
(self, value)
pymysql/connections.py:462
↓ 3 callers
Method
close
Send the quit message and close the socket. See `Connection.close() <https://www.python.org/dev/peps/pep-0249/#Connection.close>`_
pymysql/connections.py:422
↓ 3 callers
Method
get_mysql_vendor
(self, conn)
pymysql/tests/base.py:51
↓ 3 callers
Method
is_auth_switch_request
(self)
pymysql/protocol.py:191
↓ 3 callers
Method
is_eof_packet
(self)
pymysql/protocol.py:185
↓ 3 callers
Method
is_extra_auth_data
(self)
pymysql/protocol.py:195
↓ 3 callers
Method
is_load_local_packet
(self)
pymysql/protocol.py:203
↓ 3 callers
Method
read_next
Read next row.
pymysql/cursors.py:442
↓ 3 callers
Method
read_struct
(self, fmt)
pymysql/protocol.py:175
↓ 3 callers
Method
set_character_set
Set charset (and collation) Send "SET NAMES charset [COLLATE collation]" query. Update Connection.encoding based on charset.
pymysql/connections.py:641
↓ 2 callers
Method
_ensure_cursor_expired
(self, cursor)
pymysql/tests/test_DictCursor.py:41
↓ 2 callers
Method
_get_descriptions
Read a column descriptor packet for each column in the result.
pymysql/connections.py:1446
↓ 2 callers
Method
_nextset
Get the next query set.
pymysql/cursors.py:90
↓ 2 callers
Method
_query
(self, q)
pymysql/cursors.py:331
↓ 2 callers
Method
_read_load_local_packet
(self, first_packet)
pymysql/connections.py:1333
↓ 2 callers
Method
_read_query_result
(self, unbuffered=False)
pymysql/connections.py:849
↓ 2 callers
Method
_read_row_from_packet
(self, packet)
pymysql/connections.py:1427
↓ 2 callers
Function
_roundtrip
(conn, send_data)
pymysql/_auth.py:117
↓ 2 callers
Method
_test_convert_timedelta
(self, with_negate=False, with_fsp=False)
pymysql/tests/test_converters.py:25
↓ 2 callers
Method
authenticate
(self, pkt)
pymysql/tests/test_connection.py:167
↓ 2 callers
Function
escape_item
(val, charset=None, mapping=None)
pymysql/converters.py:11
↓ 2 callers
Method
fetchall_unbuffered
Fetch all, implemented as a generator, which isn't to standard, however, it doesn't make sense to return everything in a list, as tha
pymysql/cursors.py:464
↓ 2 callers
Method
get_autocommit
(self)
pymysql/connections.py:468
↓ 2 callers
Method
get_server_info
(self)
pymysql/connections.py:1250
↓ 2 callers
Method
is_error_packet
(self)
pymysql/protocol.py:206
↓ 2 callers
Method
mysql_server_is
Return True if the given connection is on the version given or greater. This only checks the server version string provided when the
pymysql/tests/base.py:30
↓ 2 callers
Method
next_result
(self, unbuffered=False)
pymysql/connections.py:582
↓ 2 callers
Method
ping
Check if the server is alive. `reconnect` is deprecated. Create a new connection if you want to reconnect. :param reconnect
pymysql/connections.py:594
↓ 2 callers
Method
raise_for_error
(self)
pymysql/protocol.py:213
↓ 2 callers
Method
read_length_coded_string
Read a 'Length Coded String' from the data buffer. A 'Length Coded String' consists first of a length coded (unsigned, positive) inte
pymysql/protocol.py:163
↓ 2 callers
Method
read_uint16
(self)
pymysql/protocol.py:116
↓ 2 callers
Method
realTestDialogAuthThreeAttempts
(self)
pymysql/tests/test_connection.py:253
↓ 2 callers
Method
realTestDialogAuthTwoQuestions
(self)
pymysql/tests/test_connection.py:210
↓ 2 callers
Method
realTestPamAuth
(self)
pymysql/tests/test_connection.py:339
↓ 2 callers
Method
realtestSocketAuth
(self)
pymysql/tests/test_connection.py:142
↓ 2 callers
Method
set_charset
Deprecated. Use set_character_set() instead.
pymysql/connections.py:628
↓ 2 callers
Function
sha2_rsa_encrypt
Encrypt password with salt and public_key. Used for sha256_password and caching_sha2_password.
pymysql/_auth.py:136
↓ 1 callers
Method
__init__
(self, data, encoding)
pymysql/protocol.py:54
↓ 1 callers
Method
__iter__
(self)
pymysql/cursors.py:359
↓ 1 callers
Method
__next__
(self)
pymysql/cursors.py:362
↓ 1 callers
Method
__remove_quotes
(self, value)
pymysql/optionfile.py:9
↓ 1 callers
Function
_backquote_escape
(s)
pymysql/cursors.py:20
↓ 1 callers
Method
_conv_row
(self, row)
pymysql/cursors.py:387
↓ 1 callers
Method
_conv_row
(self, row)
pymysql/cursors.py:413
↓ 1 callers
Method
_create_ssl_ctx
(self, sslp)
pymysql/connections.py:382
↓ 1 callers
Method
_do_execute_many
( self, prefix, values, postfix, args, max_stmt_length, encoding )
pymysql/cursors.py:210
↓ 1 callers
Method
_escape_string
(self, s: str)
pymysql/connections.py:555
↓ 1 callers
Method
_get_auth_plugin_handler
(self, plugin_name)
pymysql/connections.py:1152
↓ 1 callers
Method
_get_server_information
(self)
pymysql/connections.py:1182
↓ 1 callers
Function
_init_nacl
()
pymysql/_auth.py:57
↓ 1 callers
Function
_lenenc_int
(i)
pymysql/connections.py:75
↓ 1 callers
Function
_map_error
(exc, *errors)
pymysql/err.py:76
↓ 1 callers
Function
_my_crypt
(message1, message2)
pymysql/_auth.py:42
↓ 1 callers
Function
_pack_int24
(n)
pymysql/connections.py:70
↓ 1 callers
Method
_parse_field_descriptor
Parse the 'Field Descriptor' (Metadata) packet. This is compatible with MySQL 4.1+ (not compatible with MySQL 4.0).
pymysql/protocol.py:236
↓ 1 callers
Method
_process_auth
(self, plugin_name, auth_packet, handler=None)
pymysql/connections.py:1077
↓ 1 callers
Method
_read_bytes
(self, num_bytes)
pymysql/connections.py:811
next →
1–100 of 364, ranked by callers