Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sqlalchemy/sqlalchemy
/ functions
Functions
28,030 in github.com/sqlalchemy/sqlalchemy
⨍
Functions
28,030
◇
Types & classes
6,670
↳
Endpoints
215
↓ 15 callers
Method
fail
(self)
lib/sqlalchemy/testing/config.py:203
↓ 15 callers
Method
get
(self, key)
examples/dogpile_caching/local_session_caching.py:43
↓ 15 callers
Method
get_bind
(self, **kw)
test/orm/test_bind.py:441
↓ 15 callers
Method
get_enums
Return a list of ENUM objects. Each member is a dictionary containing these fields: * name - name of the enum * sche
lib/sqlalchemy/dialects/postgresql/base.py:3161
↓ 15 callers
Method
inline
Make this :class:`_expression.Insert` construct "inline" . When set, no attempt will be made to retrieve the SQL-generated default va
lib/sqlalchemy/sql/dml.py:1255
↓ 15 callers
Method
is_modified
r"""Return ``True`` if the given instance has locally modified attributes. This method retrieves the history for each instrumented
lib/sqlalchemy/orm/session.py:4770
↓ 15 callers
Method
issuperset
(self)
test/perf/compiled_extensions.py:589
↓ 15 callers
Method
prefix_with
r"""Add one or more expressions following the statement keyword, i.e. SELECT, INSERT, UPDATE, or DELETE. Generative. This is used to
lib/sqlalchemy/sql/selectable.py:390
↓ 15 callers
Method
run_sync
Invoke the given synchronous (i.e. not async) callable, passing a synchronous-style :class:`_orm.Session` as the first argument.
lib/sqlalchemy/ext/asyncio/session.py:335
↓ 15 callers
Method
update_execution_options
r"""Update the default execution_options dictionary of this :class:`_engine.Engine`. The given keys/values in \**opt are added to the
lib/sqlalchemy/engine/base.py:3024
↓ 15 callers
Method
values
r"""Specify a fixed VALUES clause for an INSERT statement, or the SET clause for an UPDATE. Note that the :class:`_expression.Insert`
lib/sqlalchemy/sql/dml.py:1033
↓ 14 callers
Method
_column_collection
(self, columns=None)
test/base/test_utils.py:883
↓ 14 callers
Method
_compile_context
(self, for_statement: bool = False)
lib/sqlalchemy/orm/query.py:3359
↓ 14 callers
Method
_constraint_create_fixture
(self)
test/sql/test_constraints.py:1173
↓ 14 callers
Method
_expire_attributes
( self, dict_: _InstanceDict, attribute_names: Iterable[str], no_loader: bool
lib/sqlalchemy/orm/state.py:776
↓ 14 callers
Method
_fixture
(self, binds)
test/orm/test_bind.py:723
↓ 14 callers
Method
_fixture
(self)
test/orm/test_versioning.py:171
↓ 14 callers
Method
_test
( self, connection, stmt, row, returning=None, inserted_primar
test/sql/test_insert_exec.py:527
↓ 14 callers
Function
attribute_keyed_dict
A dictionary-based collection type with attribute-based keying. .. versionchanged:: 2.0 Renamed :data:`.attribute_mapped_collection` to :f
lib/sqlalchemy/orm/mapped_collection.py:227
↓ 14 callers
Method
connection
r"""Return a :class:`_engine.Connection` object corresponding to this :class:`.Session` object's transactional state. Either the :cla
lib/sqlalchemy/orm/session.py:2054
↓ 14 callers
Method
detach
(*arg, **kw)
test/engine/test_pool.py:496
↓ 14 callers
Method
discard
(self, elem: _T)
lib/sqlalchemy/ext/mutable.py:1053
↓ 14 callers
Method
extend
Add an iterable of items to this :class:`_orm.AppenderQuery`. The given items will be persisted to the database in terms of the paren
lib/sqlalchemy/orm/dynamic.py:264
↓ 14 callers
Method
freeze
Return a callable object that will produce copies of this :class:`_engine.Result` when invoked. The callable object returned is an in
lib/sqlalchemy/engine/result.py:1602
↓ 14 callers
Method
get_attribute_history
Facade to attributes.get_state_history(), including caching of results.
lib/sqlalchemy/orm/unitofwork.py:244
↓ 14 callers
Function
instance_dict
(instance: object)
lib/sqlalchemy/orm/base.py:328
↓ 14 callers
Method
keys
(self)
test/engine/test_execute.py:631
↓ 14 callers
Method
operate
(self, op, *other, **kwargs)
lib/sqlalchemy/sql/lambdas.py:1345
↓ 14 callers
Method
populate_existing
Return a :class:`_query.Query` that will expire and refresh all instances as they are loaded, or reused from the current :class:`.Sess
lib/sqlalchemy/orm/query.py:1220
↓ 14 callers
Method
process
(value)
lib/sqlalchemy/dialects/oracle/vector.py:297
↓ 14 callers
Method
reduce_columns
Return a new :func:`_expression.select` construct with redundantly named, equivalently-valued columns removed from the columns clause.
lib/sqlalchemy/sql/selectable.py:5990
↓ 14 callers
Method
skip_test
(self, msg)
lib/sqlalchemy/testing/config.py:428
↓ 14 callers
Method
undefer
r"""Indicate that the given column-oriented attribute should be undeferred, e.g. specified within the SELECT statement of the entity a
lib/sqlalchemy/orm/strategy_options.py:642
↓ 14 callers
Method
update
(self, *arg: Iterable[_T])
lib/sqlalchemy/ext/mutable.py:1013
↓ 14 callers
Method
with_ddl_events
helper context manager that will apply appropriate DDL events to a CREATE or DROP operation.
lib/sqlalchemy/sql/ddl.py:876
↓ 14 callers
Method
with_hint
Add a table hint for a single table to this INSERT/UPDATE/DELETE statement. .. note:: :meth:`.UpdateBase.with_hint` current
lib/sqlalchemy/sql/dml.py:863
↓ 13 callers
Method
__new__
( cls, value_list: Optional[Union[Iterable[str], str]] )
lib/sqlalchemy/orm/util.py:207
↓ 13 callers
Method
_assert_history
(self, obj, compare, compare_passive=None)
test/orm/test_dynamic.py:1997
↓ 13 callers
Method
_cached_result_processor
Return a dialect-specific result processor for this type.
lib/sqlalchemy/sql/type_api.py:934
↓ 13 callers
Method
_clear
(cls)
lib/sqlalchemy/event/base.py:424
↓ 13 callers
Method
_construct_raw
( cls, operator: OperatorType, clauses: Optional[Sequence[ColumnElement[Any]]] = None,
lib/sqlalchemy/sql/elements.py:2780
↓ 13 callers
Method
_repr_params
( self, params: _AnySingleExecuteParams, typ: int, )
lib/sqlalchemy/sql/util.py:724
↓ 13 callers
Method
_test_where
(self, whereclause, expected)
test/dialect/postgresql/test_types.py:3807
↓ 13 callers
Method
base_listen
( self, propagate: bool = False, insert: bool = False, named: bool = False,
lib/sqlalchemy/event/registry.py:338
↓ 13 callers
Method
clear
(self)
test/orm/test_collection.py:1189
↓ 13 callers
Method
close
(self)
lib/sqlalchemy/testing/engines.py:478
↓ 13 callers
Method
compile
(self, dialect, **kw)
lib/sqlalchemy/testing/assertions.py:627
↓ 13 callers
Method
contained_by
Determine whether this range is a contained by `other`.
lib/sqlalchemy/dialects/postgresql/ranges.py:326
↓ 13 callers
Method
current_date
(self)
lib/sqlalchemy/sql/functions.py:1102
↓ 13 callers
Method
current_timestamp
(self)
lib/sqlalchemy/sql/functions.py:1108
↓ 13 callers
Method
fetchone
(self)
lib/sqlalchemy/dialects/postgresql/pg8000.py:364
↓ 13 callers
Method
get
Remove and return an item from the queue. If optional args `block` is True and `timeout` is None (the default), block if necessary un
lib/sqlalchemy/util/queue.py:174
↓ 13 callers
Method
get_isolation_levels
Return a structure of supported isolation levels for the current testing dialect. The structure indicates to the testing suite what t
lib/sqlalchemy/testing/requirements.py:1067
↓ 13 callers
Method
has_sequence
Check the existence of a particular sequence in the database. Given a :class:`_engine.Connection` object and a string `sequence_name`
lib/sqlalchemy/engine/interfaces.py:1912
↓ 13 callers
Method
intersection
(self)
test/perf/compiled_extensions.py:659
↓ 13 callers
Method
is_derived_from
Return ``True`` if this :class:`.ReturnsRows` is 'derived' from the given :class:`.FromClause`. Since these are DMLs, we dont want su
lib/sqlalchemy/sql/dml.py:712
↓ 13 callers
Method
is_not
Implement the ``IS NOT`` operator. Normally, ``IS NOT`` is generated automatically when comparing to a value of ``None``, which resol
lib/sqlalchemy/sql/operators.py:1052
↓ 13 callers
Function
lambda_stmt
Produce a SQL statement that is cached as a lambda. The Python code object within the lambda is scanned for both Python literals that will be
lib/sqlalchemy/sql/lambdas.py:80
↓ 13 callers
Method
merge_with
( self, *dicts: Optional[Mapping[_KT, _VT]] )
lib/sqlalchemy/util/_py_collections.py:124
↓ 13 callers
Method
or_
Produce a conjunction of expressions joined by ``OR``. See :func:`_sql.or_` for full documentation.
lib/sqlalchemy/sql/elements.py:3187
↓ 13 callers
Method
recreate
Return a new :class:`_pool.Pool`, of the same class as this one and configured with identical creation arguments. This method is used
lib/sqlalchemy/pool/base.py:413
↓ 13 callers
Method
temp_table_name
(cls)
lib/sqlalchemy/testing/suite/test_reflection.py:811
↓ 13 callers
Method
update
(self, value: Dict[str, _T])
lib/sqlalchemy/util/_collections.py:227
↓ 13 callers
Method
with_parent
Add filtering criterion that relates the given instance to a child object or collection, using its attribute state as well as an estab
lib/sqlalchemy/orm/query.py:1251
↓ 12 callers
Method
__init__
Create a DDL statement. :param statement: A string or unicode string to be executed. Statements will be processed with P
lib/sqlalchemy/sql/ddl.py:379
↓ 12 callers
Method
_check_configure
(self)
lib/sqlalchemy/orm/mapper.py:2409
↓ 12 callers
Method
_copy
Create a copy of this ``Column``, uninitialized. This is used in :meth:`_schema.Table.to_metadata` and by the ORM.
lib/sqlalchemy/sql/schema.py:2462
↓ 12 callers
Function
_escaped_like_impl
( fn: Callable[..., Any], other: Any, escape: Optional[str], autoescape: bool )
lib/sqlalchemy/sql/operators.py:2180
↓ 12 callers
Method
_fixture
(self)
test/sql/test_type_expressions.py:25
↓ 12 callers
Function
_generate_from_keys
( meth: Callable[..., _AbstractLoad], keys: Tuple[_AttrType, ...], chained: bool, kw: Any, )
lib/sqlalchemy/orm/strategy_options.py:2302
↓ 12 callers
Method
_make_path_registry
(self, path)
test/orm/test_options.py:95
↓ 12 callers
Method
_modified_event
( self, dict_: _InstanceDict, attr: Optional[AttributeImpl], previous: Any,
lib/sqlalchemy/orm/state.py:890
↓ 12 callers
Method
_only_one_row
( self: ResultInternal[Row[Any]], raise_for_second_row: bool, raise_for_none: bool,
lib/sqlalchemy/engine/result.py:765
↓ 12 callers
Method
_retrieve_proxy_for_target
( cls, target: _PT, regenerate: Literal[True] = ..., **additional_kw: Any )
lib/sqlalchemy/ext/asyncio/base.py:81
↓ 12 callers
Method
_roundtrip
(self)
test/ext/declarative/test_reflection.py:111
↓ 12 callers
Method
_set_parent_with_dispatch
( self, parent: SchemaEventTarget, **kw: Any )
lib/sqlalchemy/sql/schema.py:4220
↓ 12 callers
Method
add
(self, elem: _T)
lib/sqlalchemy/ext/mutable.py:1045
↓ 12 callers
Method
assertRows
Execute a statement and assert that rows returned equal expected.
test/sql/test_query.py:1526
↓ 12 callers
Method
begin
Begin a transaction, or nested transaction, on this :class:`.Session`, if one is not already begun. The :class:`_orm.Session` object
lib/sqlalchemy/orm/session.py:1897
↓ 12 callers
Method
begin_twophase
Begin a two-phase or XA transaction and return a transaction handle. The returned object is an instance of :class:`.TwoPhaseTransacti
lib/sqlalchemy/engine/base.py:945
↓ 12 callers
Method
combinations
()
test/sql/test_update.py:905
↓ 12 callers
Method
cursor
(self, *args, **kw)
lib/sqlalchemy/dialects/postgresql/psycopg.py:720
↓ 12 callers
Method
delete
(self, key)
examples/dogpile_caching/local_session_caching.py:49
↓ 12 callers
Method
difference
(self)
test/perf/compiled_extensions.py:635
↓ 12 callers
Method
difference_update
(self, *arg: Iterable[Any])
lib/sqlalchemy/ext/mutable.py:1021
↓ 12 callers
Method
enable_eagerloads
Control whether or not eager joins and subqueries are rendered. When set to False, the returned Query will not render eager j
lib/sqlalchemy/orm/query.py:876
↓ 12 callers
Function
exec_sql
(engine, sql, *args, **kwargs)
test/engine/test_logging.py:25
↓ 12 callers
Method
format_sequence
( self, sequence: schema.Sequence, use_schema: bool = True )
lib/sqlalchemy/sql/compiler.py:7857
↓ 12 callers
Method
get
Return an instance based on the given primary key identifier, or ``None`` if not found. .. seealso:: :meth:`_orm.Session
lib/sqlalchemy/ext/asyncio/session.py:570
↓ 12 callers
Method
issuperset
(self, iterable: Iterable[Any])
lib/sqlalchemy/util/_py_collections.py:380
↓ 12 callers
Method
lazyload
(state, passive)
test/orm/test_attributes.py:2902
↓ 12 callers
Method
opt_manager_of_class
(self, cls)
lib/sqlalchemy/ext/instrumentation.py:174
↓ 12 callers
Method
partitions
Iterate through sub-lists of rows of the size given. Each list will be of the size given, excluding the last list to be yielded, whic
lib/sqlalchemy/engine/result.py:1310
↓ 12 callers
Method
percentile_cont
(self)
lib/sqlalchemy/sql/functions.py:1216
↓ 12 callers
Method
process
(value)
lib/sqlalchemy/dialects/sqlite/base.py:1274
↓ 12 callers
Function
query_expression
Indicate an attribute that populates from a query-time SQL expression. :param default_expr: Optional SQL expression object that will be used in
lib/sqlalchemy/orm/_orm_constructors.py:2260
↓ 12 callers
Method
quote_identifier
Quote an identifier. Subclasses should override this to provide database-dependent quoting behavior.
lib/sqlalchemy/sql/compiler.py:7732
↓ 12 callers
Method
replace
(self, callcount)
lib/sqlalchemy/testing/profiling.py:166
↓ 12 callers
Method
run_event
(self, arg)
test/base/test_events.py:985
↓ 12 callers
Method
safe_construct
( cls, seed: int, body: str, enclosing_label: Optional[str] = None, sa
lib/sqlalchemy/sql/elements.py:5539
← previous
next →
501–600 of 28,030, ranked by callers