aiomysql API reference
52 public APIs from aiomysql (aio-libs/aiomysql) — 13 classes, 0 functions, 39 methods. Signatures extracted by static analysis of the actual source.
Repository: aio-libs/aiomysql
| Kind | Count |
|---|---|
| Classes | 13 |
| Functions | 0 |
| Methods | 39 |
API list
class
aiomysql.connection.ConnectionRepresentation of a socket with a mysql server.
method
aiomysql.connection.Connection.begin()Begin transaction.
method
aiomysql.connection.Connection.close()Close socket connection
method
aiomysql.connection.Connection.commit()Commit changes to stable storage.
method
aiomysql.connection.Connection.db()Current database name.
method
aiomysql.connection.Connection.echo()Return echo mode status.
method
aiomysql.connection.Connection.encoding()Encoding employed for this connection.
method
aiomysql.connection.Connection.escape(obj)Escape whatever value you pass to it
method
aiomysql.connection.Connection.host()MySQL server IP address or name
method
aiomysql.connection.Connection.literal(obj)Alias for escape()
method
aiomysql.connection.Connection.ping(reconnect=True)Check if the server is alive
method
aiomysql.connection.Connection.port()MySQL server TCP/IP port
method
aiomysql.connection.Connection.rollback()Roll back the current transaction.
method
aiomysql.connection.Connection.select_db(db)Set current db
method
aiomysql.connection.Connection.show_warnings()SHOW WARNINGS
method
aiomysql.connection.Connection.unix_socket()MySQL Unix socket file location
method
aiomysql.connection.Connection.user()User used while connecting to MySQL
class
aiomysql.cursors.CursorCursor is used to interact with the database.
method
aiomysql.cursors.Cursor.echo()Return echo mode status.
method
aiomysql.cursors.Cursor.fetchone()Fetch the next row
method
aiomysql.cursors.Cursor.nextset()Get the next query set
method
aiomysql.cursors.Cursor.rownumber()Row index.
method
aiomysql.cursors.Cursor.setinputsizes(*args)Does nothing, required by DB API.
method
aiomysql.cursors.Cursor.setoutputsizes(*args)Does nothing, required by DB API.
class
aiomysql.cursors.DeserializationCursorA cursor automatic deserialization of json type fields
class
aiomysql.cursors.DictCursorA cursor which returns results as a dictionary
class
aiomysql.cursors.SSDictCursorAn unbuffered cursor, which returns results as a dictionary
class
aiomysql.pool.PoolConnection pool
method
aiomysql.pool.Pool.acquire()Acquire free connection from the pool.
method
aiomysql.pool.Pool.clear()Close all free connections in pool.
method
aiomysql.pool.Pool.close()Close pool.
method
aiomysql.pool.Pool.terminate()Terminate pool.
method
aiomysql.pool.Pool.wait_closed()Wait for closing all pool's connections.
method
aiomysql.sa.engine.Engine.acquire()Get a connection from pool.
method
aiomysql.sa.engine.Engine.close()Close engine.
method
aiomysql.sa.engine.Engine.dialect()An dialect for engine.
method
aiomysql.sa.engine.Engine.driver()A driver of the dialect.
method
aiomysql.sa.engine.Engine.name()A name of the dialect.
method
aiomysql.sa.engine.Engine.release(conn)Revert back connection to pool.
method
aiomysql.sa.engine.Engine.terminate()Terminate engine.
class
aiomysql.sa.exc.ArgumentErrorRaised when an invalid or conflicting function argument is supplied.
class
aiomysql.sa.exc.ErrorGeneric error class.
class
aiomysql.sa.exc.InvalidRequestErroraiomysql.sa was asked to do something it can't do.
class
aiomysql.sa.exc.NoSuchColumnErrorA nonexistent column is requested from a ``RowProxy``.
class
aiomysql.sa.transaction.NestedTransactionRepresent a 'nested', or SAVEPOINT transaction.
class
aiomysql.sa.transaction.TransactionRepresent a database transaction in progress.
method
aiomysql.sa.transaction.Transaction.close()Close this transaction.
method
aiomysql.sa.transaction.Transaction.commit()Commit this transaction.
method
aiomysql.sa.transaction.Transaction.rollback()Roll back this transaction.
class
aiomysql.sa.transaction.TwoPhaseTransactionRepresent a two-phase transaction.
method
aiomysql.sa.transaction.TwoPhaseTransaction.prepare()Prepare this TwoPhaseTransaction.
method
aiomysql.sa.transaction.TwoPhaseTransaction.xid()Returns twophase transaction id.
About this data
These signatures were extracted from the public source of aio-libs/aiomysql
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.