MCPcopy Create free account

hub / github.com/MagicStack/asyncpg / functions

Functions1,164 in github.com/MagicStack/asyncpg

↓ 132 callersMethodexecute
Execute an SQL command (or commands). Pool performs this operation using one of its connections. Other than that, it behaves identic
asyncpg/pool.py:694
↓ 99 callersMethodfetchval
(self, query)
tests/test_pool.py:556
↓ 79 callersMethodclose
()
tests/test_connect.py:1728
↓ 76 callersMethodcreate_pool
(self, **kwargs)
tests/test_pool.py:1650
↓ 55 callersMethodacquire
Acquire a database connection from the pool. :param float timeout: A timeout for acquiring a Connection. :return: An instance of :cla
asyncpg/pool.py:969
↓ 54 callersMethodprepare
Return True to forward traffic, False to close a faulted attempt.
tests/test_connect.py:1941
↓ 50 callersMethodget
(self, query, *, promote=True)
asyncpg/connection.py:2587
↓ 49 callersMethodfetch
Run a query and return the results as a list of :class:`Record`. Pool performs this operation using one of its connections. Other than
asyncpg/pool.py:730
↓ 43 callersMethodconnect
()
tests/test_connect.py:2146
↓ 41 callersMethodfetchrow
Run a query and return the first row. Pool performs this operation using one of its connections. Other than that, it behaves identic
asyncpg/pool.py:767
↓ 41 callersMethodtransaction
Create a :class:`~transaction.Transaction` object. Refer to `PostgreSQL documentation`_ on the meaning of transaction parameters.
asyncpg/connection.py:285
↓ 34 callersMethodterminate
Terminate all connections in the pool.
asyncpg/pool.py:1114
↓ 29 callersMethodis_closed
Return ``True`` if the connection is closed, ``False`` otherwise. :return bool: ``True`` if the connection is closed, ``False``
asyncpg/connection.py:1517
↓ 25 callersMethodcancel
(**kwargs)
tests/test_pool.py:498
↓ 23 callersMethodconnect
(*args, **kwargs)
tests/test_pool.py:162
↓ 23 callersMethodcursor
Return a *cursor factory* for the specified query. :param args: Query arguments. :param int prefetch: The num
asyncpg/connection.py:590
↓ 23 callersMethodwait
()
tests/test_pool.py:52
↓ 17 callersMethodrelease
Release a database connection back to the pool. :param Connection connection: A :class:`~asyncpg.connection.Connection` object to
asyncpg/pool.py:1019
↓ 17 callersMethodset_type_codec
Set an encoder/decoder pair for the specified data type. :param typename: Name of the data type the codec is for. :param
asyncpg/connection.py:1285
↓ 16 callersMethodwrite
(data)
tests/test_timeout.py:244
↓ 15 callersMethod_test_works
(self, *, expected_ssl=None, **conn_args)
tests/test_connect.py:2091
↓ 15 callersMethodexecutemany
Execute an SQL *command* for each sequence of arguments in *args*. Pool performs this operation using one of its connections. Other than
asyncpg/pool.py:711
↓ 15 callersMethodget_size
Return the current number of connections in this pool. .. versionadded:: 0.25.0
asyncpg/pool.py:591
↓ 15 callersMethodrun
(N, meth)
tests/test_pool.py:643
↓ 14 callersMethodassertRunUnder
(self, delta)
asyncpg/_testbase/__init__.py:144
↓ 14 callersMethodconnection_proxy
(self, *faults, direct=False)
tests/test_connect.py:2167
↓ 13 callersMethod_check_open
(self)
asyncpg/connection.py:1629
↓ 13 callersMethodget_status
(self)
asyncpg/cluster.py:100
↓ 13 callersMethodis_closing
Return ``True`` if the pool is closing or is closed. .. versionadded:: 0.28.0
asyncpg/pool.py:584
↓ 13 callersMethodstart
Start the cluster.
asyncpg/cluster.py:167
↓ 12 callersMethod_prepare
( self, query, *, name: typing.Union[str, bool, None] = None, timeout=
asyncpg/connection.py:668
↓ 12 callersMethodclose
Attempt to gracefully close all connections in the pool. Wait until all pool connections are released, close them and shut down the p
asyncpg/pool.py:1057
↓ 11 callersMethodcopy_from_query
Copy the results of a query to a file or file-like object. Pool performs this operation using one of its connections. Other than tha
asyncpg/pool.py:845
↓ 11 callersMethodget_connection_spec
(cls, kwargs={})
tests/test_connect.py:2026
↓ 11 callersMethodget_settings
Return connection settings. :return: :class:`~asyncpg.ConnectionSettings`.
asyncpg/connection.py:278
↓ 10 callersMethodclear
(self)
asyncpg/connection.py:2627
↓ 10 callersMethodget_pg_version
(self)
asyncpg/cluster.py:91
↓ 9 callersMethod_check_statements_are_closed
(self, statements)
tests/test_cache_invalidation.py:26
↓ 9 callersMethod_check_statements_are_not_closed
(self, statements)
tests/test_cache_invalidation.py:22
↓ 9 callersMethod_get_cached_statements
(self, connection=None)
tests/test_cache_invalidation.py:17
↓ 9 callersMethod_try_connect
(self, **kwargs)
tests/test_connect.py:232
↓ 9 callersMethodis_in_transaction
Return True if Connection is currently inside a transaction. :return bool: True if inside transaction, False otherwise. .. versionad
asyncpg/connection.py:311
↓ 9 callersMethodrun_testcase
(self, testcase)
tests/test_connect.py:1142
↓ 8 callersMethod_check_ready
(self)
asyncpg/cursor.py:105
↓ 8 callersMethodcopy_records_to_table
Copy a list of records to the specified table using binary COPY. Pool performs this operation using one of its connections. Other than
asyncpg/pool.py:940
↓ 8 callersMethodfrom_callable
(cls, cb: typing.Callable[..., None])
asyncpg/connection.py:2682
↓ 8 callersMethodis_connected
(self)
asyncpg/pool.py:159
↓ 8 callersMethodreload
Reload server configuration.
asyncpg/cluster.py:262
↓ 7 callersMethodcopy_to_table
Copy data to the specified table. Pool performs this operation using one of its connections. Other than that, it behaves identically
asyncpg/pool.py:887
↓ 7 callersMethodget_max_size
Return the maximum allowed number of connections in this pool. .. versionadded:: 0.25.0
asyncpg/pool.py:616
↓ 6 callersMethod_add_hba_entries
(self, connection_type, auth_method, *, addresses=('127.0.0.0/24', '::1/128'))
tests/test_connect.py:2084
↓ 6 callersMethodadd_termination_listener
Add a listener that will be called when the connection is closed. :param callable callback: A callable or a coroutine function re
asyncpg/connection.py:210
↓ 6 callersMethodclose
(self)
asyncpg/_testbase/fuzzer.py:190
↓ 6 callersMethodget_attributes
Return a description of relation attributes (columns). :return: A tuple of :class:`asyncpg.types.Attribute`. Example::
asyncpg/prepared_stmt.py:79
↓ 6 callersMethodget_connection_spec
(cls, kwargs={})
asyncpg/_testbase/__init__.py:350
↓ 6 callersMethodreset
(con)
tests/test_pool.py:180
↓ 6 callersMethodreset_hba
Remove all records from pg_hba.conf.
asyncpg/cluster.py:367
↓ 6 callersMethodrollback
Exit the transaction or savepoint block and rollback changes.
asyncpg/transaction.py:222
↓ 6 callersMethodwait_for_pool_size
(self, pool, size)
tests/test_pool.py:51
↓ 5 callersMethod_allow_plaintext
(self)
tests/test_connect.py:2204
↓ 5 callersMethod_drop_local_statement_cache
(self)
asyncpg/connection.py:1823
↓ 5 callersMethod_execute
( self, query, args, limit, timeout, *, return_status=
asyncpg/connection.py:1892
↓ 5 callersMethodadd_hba_entry
Add a record to pg_hba.conf.
asyncpg/cluster.py:383
↓ 5 callersMethodadd_listener
Add a listener for Postgres notifications. :param str channel: Channel to listen on. :param callable callback: A callabl
asyncpg/connection.py:145
↓ 5 callersMethodcheckref
(self, *objs)
tests/test_record.py:36
↓ 5 callersMethodget_cluster_connection_spec
(cls, cluster, kwargs={})
asyncpg/_testbase/__init__.py:513
↓ 5 callersMethodget_server_version
Return the version of the connected PostgreSQL server. The returned value is a named tuple similar to that in ``sys.version_info``:
asyncpg/connection.py:262
↓ 5 callersMethodnew_cluster
(cls, ClusterCls, *, cluster_kwargs={}, initdb_options={})
asyncpg/_testbase/__init__.py:316
↓ 5 callersMethodpending_cancel
(self, *, cancel_sent, command_timeout=None)
tests/test_timeout.py:163
↓ 5 callersMethodreset_type_codec
Reset *typename* codec to the default implementation. :param typename: Name of the data type the codec is for. :param sc
asyncpg/connection.py:1447
↓ 5 callersMethodstart_cluster
(cls, cluster, *, server_settings={})
asyncpg/_testbase/__init__.py:323
↓ 5 callersMethodtrigger_connectivity_loss
(self)
asyncpg/_testbase/fuzzer.py:130
↓ 4 callersMethod_check_init
(self)
asyncpg/pool.py:1135
↓ 4 callersMethod_clear_entry_callback
(self, entry)
asyncpg/connection.py:2661
↓ 4 callersFunction_get_connected_host
(con)
tests/test_connect.py:2998
↓ 4 callersMethod_get_statement
( self, query, timeout, *, named: typing.Union[str, bool, None] = Fals
asyncpg/connection.py:426
↓ 4 callersMethod_get_unique_id
(self, prefix)
asyncpg/connection.py:1633
↓ 4 callersMethod_maybe_gc_stmt
(self, stmt)
asyncpg/connection.py:1648
↓ 4 callersMethodadd_log_listener
Add a listener for Postgres log messages. It will be called when asynchronous NoticeResponse is received from the connection. Possib
asyncpg/connection.py:181
↓ 4 callersMethodcancel
(**kwargs)
tests/test_timeout.py:167
↓ 4 callersMethodconnect
(cls, **kwargs)
asyncpg/_testbase/__init__.py:363
↓ 4 callersMethodcopy
()
tests/test_copy.py:729
↓ 4 callersMethodexpire_connections
Expire all currently open connections. Cause all currently open connections to get replaced on the next :meth:`~asyncpg.pool.Pool.acq
asyncpg/pool.py:1125
↓ 4 callersMethodforward
r"""Skip over the next *n* rows. :param float timeout: Optional timeout value in seconds. :return: A number of rows actually skipped
asyncpg/cursor.py:304
↓ 4 callersMethodget_min_size
Return the minimum number of connections in this pool. .. versionadded:: 0.25.0 .. versionchanged:: 0.32.0 The parameter
asyncpg/pool.py:605
↓ 4 callersFunctionget_module_state
asyncpg/protocol/record/recordobj.c:44
↓ 4 callersFunctionget_module_state_from_type
asyncpg/protocol/record/recordobj.c:55
↓ 4 callersMethodget_server_pid
Return the PID of the Postgres server the connection is bound to.
asyncpg/connection.py:258
↓ 4 callersMethodget_server_settings
(cls)
tests/test_connect.py:433
↓ 4 callersMethoditer_statements
(self)
asyncpg/connection.py:2624
↓ 4 callersMethodlower
(self)
asyncpg/types.py:107
↓ 4 callersFunctionmock_dot_postgresql
(*, ca=True, crl=False, client=False, protected=False)
tests/test_connect.py:64
↓ 4 callersMethodrestore_connectivity
(self)
asyncpg/_testbase/fuzzer.py:137
↓ 4 callersMethodset_builtin_type_codec
Set a builtin codec for the specified scalar data type. This method has two uses. The first is to register a builtin codec for an ex
asyncpg/connection.py:1467
↓ 4 callersMethodtrust_local_connections
(self)
asyncpg/cluster.py:418
↓ 4 callersMethodupper
(self)
asyncpg/types.py:119
↓ 3 callersFunctionPyBytesWriter_Discard
asyncpg/protocol/record/pythoncapi_compat.h:2381
↓ 3 callersFunctionPyBytesWriter_GetData
asyncpg/protocol/record/pythoncapi_compat.h:2364
↓ 3 callersFunctionPyVectorcall_NARGS
asyncpg/protocol/record/pythoncapi_compat.h:601
↓ 3 callersFunction_PyBytesWriter_Resize_impl
asyncpg/protocol/record/pythoncapi_compat.h:2317
next →1–100 of 1,164, ranked by callers