pyro_mysql.pyro_mysql

A Python module implemented in Rust.

def init(worker_threads=Ellipsis, thread_name=None):

This function can be called multiple times until any async operation is called.

class Row:
def to_tuple(self, /):

The type of the None singleton.

def to_dict(self, /):

The type of the None singleton.

class IsolationLevel:
def as_str(self, /):

The type of the None singleton.

ReadUncommitted = IsolationLevel.ReadUncommitted
class CapabilityFlags:
CLIENT_LONG_PASSWORD = 1
CLIENT_FOUND_ROWS = 2
CLIENT_LONG_FLAG = 4
CLIENT_CONNECT_WITH_DB = 8
CLIENT_NO_SCHEMA = 16
CLIENT_COMPRESS = 32
CLIENT_ODBC = 64
CLIENT_LOCAL_FILES = 128
CLIENT_IGNORE_SPACE = 256
CLIENT_PROTOCOL_41 = 512
CLIENT_INTERACTIVE = 1024
CLIENT_SSL = 2048
CLIENT_IGNORE_SIGPIPE = 4096
CLIENT_TRANSACTIONS = 8192
CLIENT_RESERVED = 16384
CLIENT_SECURE_CONNECTION = 32768
CLIENT_MULTI_STATEMENTS = 65536
CLIENT_MULTI_RESULTS = 131072
CLIENT_PS_MULTI_RESULTS = 262144
CLIENT_PLUGIN_AUTH = 524288
CLIENT_CONNECT_ATTRS = 1048576
CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA = 2097152
CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS = 4194304
CLIENT_SESSION_TRACK = 8388608
CLIENT_DEPRECATE_EOF = 16777216
CLIENT_OPTIONAL_RESULTSET_METADATA = 33554432
CLIENT_ZSTD_COMPRESSION_ALGORITHM = 67108864
CLIENT_QUERY_ATTRIBUTES = 134217728
MULTI_FACTOR_AUTHENTICATION = 268435456
CLIENT_PROGRESS_OBSOLETE = 536870912
CLIENT_SSL_VERIFY_SERVER_CERT = 1073741824
CLIENT_REMEMBER_OPTIONS = 2147483648
class AsyncPool:
def acquire(self, /):

The type of the None singleton.

class AsyncConn:

Concurrency

The API is thread-safe. The underlying implementation is protected by RwLock. Conn.exec_*() receives &mut self, so there is at most one statement being executed at any point.

def new(url_or_opts):

The type of the None singleton.

def start_transaction( self, /, consistent_snapshot=False, isolation_level=None, readonly=None):

The type of the None singleton.

def affected_rows(self, /):

The type of the None singleton.

def close_prepared_statement(self, /, _stmt):

The type of the None singleton.

def ping(self, /):

The type of the None singleton.

def query(self, /, query):

The type of the None singleton.

def query_first(self, /, query):

The type of the None singleton.

def query_drop(self, /, query):

The type of the None singleton.

def exec(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_first(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_drop(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_batch(self, /, query, params=Ellipsis):

The type of the None singleton.

class AsyncTransaction:
def commit(self, /):

The type of the None singleton.

def rollback(self, /):

The type of the None singleton.

def affected_rows(self, /):

The type of the None singleton.

def close_prepared_statement(self, /, _stmt):

The type of the None singleton.

def ping(self, /):

The type of the None singleton.

def query(self, /, query):

The type of the None singleton.

def query_first(self, /, query):

The type of the None singleton.

def query_drop(self, /, query):

The type of the None singleton.

def exec(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_first(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_drop(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_batch(self, /, query, params=Ellipsis):

The type of the None singleton.

class AsyncOpts:
class AsyncOptsBuilder:
def from_opts(opts):

The type of the None singleton.

def ip_or_hostname(self, /, hostname):

The type of the None singleton.

def tcp_port(self, /, port):

The type of the None singleton.

def socket(self, /, path):

The type of the None singleton.

def user(self, /, username):

The type of the None singleton.

def pass(self, /, password):

The type of the None singleton.

def db_name(self, /, database):

The type of the None singleton.

def secure_auth(self, /, enable):

The type of the None singleton.

def wait_timeout(self, /, seconds):

The type of the None singleton.

def stmt_cache_size(self, /, size):

The type of the None singleton.

def tcp_nodelay(self, /, enable):

The type of the None singleton.

def tcp_keepalive(self, /, keepalive_ms):

The type of the None singleton.

def max_allowed_packet(self, /, max_allowed_packet):

The type of the None singleton.

def prefer_socket(self, /, prefer_socket):

The type of the None singleton.

def init(self, /, commands):

The type of the None singleton.

def compression(self, /, level):

The type of the None singleton.

def ssl_opts(self, /, _opts):

The type of the None singleton.

def local_infile_handler(self, /, _handler):

The type of the None singleton.

def pool_opts(self, /, _opts):

The type of the None singleton.

def enable_cleartext_plugin(self, /, enable):

The type of the None singleton.

def client_found_rows(self, /, enable):

The type of the None singleton.

def conn_ttl(self, /, ttl_seconds):

The type of the None singleton.

def setup(self, /, commands):

The type of the None singleton.

def build(self, /):

The type of the None singleton.

class SyncConn:
def run_transaction( self, /, callable, consistent_snapshot=False, isolation_level=None, readonly=None):

The type of the None singleton.

def affected_rows(self, /):

The type of the None singleton.

def ping(self, /):

The type of the None singleton.

def query(self, /, query):

The type of the None singleton.

def query_first(self, /, query):

The type of the None singleton.

def query_drop(self, /, query):

The type of the None singleton.

def query_iter(self, /, query):

The type of the None singleton.

def exec(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_first(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_drop(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_batch(self, /, query, params_list=Ellipsis):

The type of the None singleton.

def exec_iter(self, /, query, params=Ellipsis):

The type of the None singleton.

def close(self, /):

The type of the None singleton.

class SyncTransaction:
def commit(self, /):

The type of the None singleton.

def rollback(self, /):

The type of the None singleton.

def affected_rows(self, /):

The type of the None singleton.

def query(self, /, query):

The type of the None singleton.

def query_first(self, /, query):

The type of the None singleton.

def query_drop(self, /, query):

The type of the None singleton.

def query_iter(self, /, query):

The type of the None singleton.

def exec(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_first(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_drop(self, /, query, params=Ellipsis):

The type of the None singleton.

def exec_batch(self, /, query, params_list=Ellipsis):

The type of the None singleton.

def exec_iter(self, /, query, params=Ellipsis):

The type of the None singleton.