Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sqlalchemy/sqlalchemy
/ functions
Functions
29,075 in github.com/sqlalchemy/sqlalchemy
⨍
Functions
29,075
◇
Types & classes
6,901
↳
Endpoints
247
↓ 27 callers
Method
_assert_result
(self, select, result, params=None)
lib/sqlalchemy/testing/suite/test_select.py:1132
↓ 27 callers
Method
_data_str
return string form of a sample range
test/dialect/postgresql/test_types.py:4762
↓ 27 callers
Method
_queuepool_fixture
(self, **kw)
test/engine/test_pool.py:87
↓ 27 callers
Method
issuperset
(self)
test/perf/compiled_extensions/collections_.py:306
↓ 27 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:81
↓ 27 callers
Method
not_in
implement the ``NOT IN`` operator. This is equivalent to using negation with :meth:`.ColumnOperators.in_`, i.e. ``~x.in_(y)``.
lib/sqlalchemy/sql/operators.py:1140
↓ 27 callers
Method
offset
target database can render OFFSET, or an equivalent, in a SELECT.
lib/sqlalchemy/testing/requirements.py:217
↓ 27 callers
Function
only_if
(predicate, reason=None)
lib/sqlalchemy/testing/exclusions.py:197
↓ 27 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:406
↓ 27 callers
Method
stream
( self, statement: TypedReturnsRows[Unpack[_Ts]], params: Optional[_CoreAnyExecutePara
lib/sqlalchemy/ext/asyncio/session.py:657
↓ 27 callers
Method
union
r"""Return a new :class:`_expression.CTE` with a SQL ``UNION`` of the original CTE against the given selectables provided as positiona
lib/sqlalchemy/sql/selectable.py:2299
↓ 27 callers
Function
with_parent
Create filtering criterion that relates this query's primary entity to the given related instance, using established :func:`_orm.relationship(
lib/sqlalchemy/orm/util.py:2002
↓ 26 callers
Method
_assert_bind_args
(self, session, expect_mapped_bind=True)
test/orm/test_query.py:7096
↓ 26 callers
Method
add
(self, *others)
lib/sqlalchemy/testing/exclusions.py:56
↓ 26 callers
Method
contains_eager
r"""Indicate that the given attribute should be eagerly loaded from columns stated manually in the query. This function is part of th
lib/sqlalchemy/orm/strategy_options.py:94
↓ 26 callers
Function
expect
( role: Type[roles.TruncatedLabelRole], element: Any, **kw: Any, )
lib/sqlalchemy/sql/coercions.py:165
↓ 26 callers
Method
format_column
Prepare a quoted column name.
lib/sqlalchemy/sql/compiler.py:8244
↓ 26 callers
Method
get_check_constraints
r"""Return information about check constraints in ``table_name``. Given a string ``table_name`` and an optional string ``schema``, return
lib/sqlalchemy/engine/interfaces.py:1714
↓ 26 callers
Method
get_table_comment
r"""Return the "comment" for the table identified by ``table_name``. Given a string ``table_name`` and an optional string ``schema``, return
lib/sqlalchemy/engine/interfaces.py:1804
↓ 26 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:1295
↓ 26 callers
Method
on_duplicate_key_update
r""" Specifies the ON DUPLICATE KEY UPDATE clause. :param \**kw: Column keys linked to UPDATE values. The values may be an
lib/sqlalchemy/dialects/mysql/dml.py:163
↓ 26 callers
Method
shutdown
(self, stop=False)
lib/sqlalchemy/testing/engines.py:269
↓ 26 callers
Method
start
(self, is_ctxmanager: bool = False)
lib/sqlalchemy/ext/asyncio/base.py:114
↓ 25 callers
Method
_cached_bind_processor
Return a dialect-specific bind processor for this type.
lib/sqlalchemy/sql/type_api.py:973
↓ 25 callers
Method
_option_fixture
(self, *arg)
test/orm/test_options.py:414
↓ 25 callers
Method
_test_clause
(self, colclause, expected, type_)
test/dialect/postgresql/test_types.py:5853
↓ 25 callers
Method
coalesce
( self, col: ColumnElement[_T], *args: _ColumnExpressionOrLiteralArgument[
lib/sqlalchemy/sql/functions.py:1108
↓ 25 callers
Method
collate
Produce a :func:`_expression.collate` clause against the parent object, given the collation string. .. seealso:: :func:`
lib/sqlalchemy/sql/operators.py:1929
↓ 25 callers
Function
false
Return a :class:`.False_` construct. E.g.: .. sourcecode:: pycon+sql >>> from sqlalchemy import false >>> print(select(t.c.
lib/sqlalchemy/sql/_elements_constructors.py:1288
↓ 25 callers
Method
get
(self, key, default)
lib/sqlalchemy/orm/strategies.py:1814
↓ 25 callers
Method
get_unique_constraints
r"""Return information about unique constraints in ``table_name``. Given a string ``table_name`` and an optional string ``schema``, return
lib/sqlalchemy/engine/interfaces.py:1667
↓ 25 callers
Method
ilike
r"""Implement the ``ilike`` operator, e.g. case insensitive LIKE. In a column context, produces an expression either of the form: ..
lib/sqlalchemy/sql/operators.py:926
↓ 25 callers
Method
is_
Implement the ``IS`` operator. Normally, ``IS`` is generated automatically when comparing to a value of ``None``, which resolves to `
lib/sqlalchemy/sql/operators.py:1229
↓ 25 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:4934
↓ 25 callers
Function
is_none
(a, msg=None)
lib/sqlalchemy/testing/assertions.py:309
↓ 25 callers
Function
load_only
(*attrs: _AttrType, raiseload: bool = False)
lib/sqlalchemy/orm/strategy_options.py:2442
↓ 25 callers
Function
make_option
(name, **kw)
lib/sqlalchemy/testing/plugin/pytestplugin.py:37
↓ 25 callers
Method
process
(value)
lib/sqlalchemy/dialects/oracle/vector.py:300
↓ 25 callers
Function
register_class
Register class instrumentation. Returns the existing or newly created class manager.
lib/sqlalchemy/orm/instrumentation.py:655
↓ 25 callers
Method
remove
Remove the given Table object from this MetaData.
lib/sqlalchemy/sql/schema.py:6027
↓ 25 callers
Method
table
(self)
lib/sqlalchemy/sql/schema.py:4555
↓ 24 callers
Method
_divide_results
utility method to create ratios of two implementation
test/perf/compiled_extensions/base.py:60
↓ 24 callers
Method
_final_statement
Return the 'final' SELECT statement for this :class:`.Query`. This is used by the testing suite only and is fairly inefficient. This
lib/sqlalchemy/orm/query.py:554
↓ 24 callers
Method
_refresh_for_new_column
(self, column: ColumnElement[Any])
lib/sqlalchemy/sql/selectable.py:1440
↓ 24 callers
Function
colspec
(c)
test/dialect/mysql/test_types.py:1432
↓ 24 callers
Method
instance
( cls, statement: Optional[str], params: Optional[_AnyExecuteParams], orig: Ex
lib/sqlalchemy/exc.py:619
↓ 24 callers
Method
length
(self)
test/typing/plain_files/ext/hybrid/hybrid_two.py:34
↓ 24 callers
Method
nulls_first
(self)
lib/sqlalchemy/sql/elements.py:2998
↓ 24 callers
Function
remote
Annotate a portion of a primaryjoin expression with a 'remote' annotation. See the section :ref:`relationship_custom_foreign` for a descr
lib/sqlalchemy/orm/relationships.py:219
↓ 24 callers
Method
remove
(self, obj)
test/ext/test_associationproxy.py:66
↓ 24 callers
Method
render_derived
Apply "render derived" to this :class:`_sql.TableValuedAlias`. This has the effect of the individual column names listed out after th
lib/sqlalchemy/sql/selectable.py:2013
↓ 23 callers
Function
MockDBAPI
()
test/engine/test_pool.py:42
↓ 23 callers
Method
_compare_edges
Compare two range bounds. Return -1, 0 or 1 respectively when `value1` is less than, equal to or greater than `value2`. When
lib/sqlalchemy/dialects/postgresql/ranges.py:179
↓ 23 callers
Method
_extend_numeric
Extend a numeric-type declaration with MySQL specific extensions.
lib/sqlalchemy/dialects/mysql/base.py:2388
↓ 23 callers
Method
assertRows
Execute a statement and assert that rows returned equal expected.
test/sql/test_query.py:1458
↓ 23 callers
Method
do_rollback
(self, dbapi_connection)
test/engine/test_pool.py:391
↓ 23 callers
Function
fixture
(**kw)
lib/sqlalchemy/testing/util.py:293
↓ 23 callers
Method
get
(self, key)
examples/dogpile_caching/local_session_caching.py:43
↓ 23 callers
Method
having
r"""Apply a HAVING criterion to the query and return the newly resulting :class:`_query.Query`. :meth:`_query.Query.having` is used i
lib/sqlalchemy/orm/query.py:2124
↓ 23 callers
Method
icontains
r"""Implement the ``icontains`` operator, e.g. case insensitive version of :meth:`.ColumnOperators.contains`. Produces a LIKE express
lib/sqlalchemy/sql/operators.py:1708
↓ 23 callers
Method
intersection
(self)
test/perf/compiled_extensions/collections_.py:370
↓ 23 callers
Method
manager_of_class
(self, cls)
lib/sqlalchemy/ext/instrumentation.py:185
↓ 23 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:2991
↓ 23 callers
Method
within_group
Produce a WITHIN GROUP (ORDER BY expr) clause against this function.
lib/sqlalchemy/sql/elements.py:4995
↓ 22 callers
Method
_assert_collection_integrity
(self, coll)
test/base/test_utils.py:805
↓ 22 callers
Method
_clear
(cls)
lib/sqlalchemy/event/base.py:424
↓ 22 callers
Method
_test
(self, string, expected)
test/base/test_utils.py:3494
↓ 22 callers
Method
adapt
(self, cls, **kw)
lib/sqlalchemy/sql/sqltypes.py:1909
↓ 22 callers
Function
compare_type_by_string
python 3.14 has made ForwardRefs not really comparable or reliably hashable. As we need to compare types here, including structures like
test/base/test_typing_utils.py:203
↓ 22 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:2095
↓ 22 callers
Method
cursor
(self)
lib/sqlalchemy/dialects/oracle/oracledb.py:829
↓ 22 callers
Function
declare
(t: Type[_T], value: Any = None, **kw: Any)
lib/sqlalchemy/util/cython.py:50
↓ 22 callers
Method
fetchmany
(self, size=None)
test/perf/compiled_extensions/result.py:370
↓ 22 callers
Method
get
Return an instance based on the given primary key identifier, or ``None`` if not found. E.g.:: my_user = session.get(Use
lib/sqlalchemy/orm/session.py:3707
↓ 22 callers
Method
get
Retrieve a value from the given object. If a callable is assembled on this object's attribute, and passive is False, the callable will
lib/sqlalchemy/orm/attributes.py:1068
↓ 22 callers
Method
get_bind
(self, **kw)
test/orm/test_bind.py:441
↓ 22 callers
Method
lazyload
(state, passive)
test/orm/test_attributes.py:2902
↓ 22 callers
Method
listen
(target_cls: type, *arg: Any)
lib/sqlalchemy/orm/events.py:131
↓ 22 callers
Method
register_object
( self, state: InstanceState[Any], isdelete: bool = False, listonly: bool = Fa
lib/sqlalchemy/orm/unitofwork.py:307
↓ 22 callers
Method
set
(self, obj, value, oldvalue, initiator)
test/orm/test_collection.py:90
↓ 21 callers
Method
_anonymous_fromclause
( self, name: Optional[str] = None, flat: bool = False )
lib/sqlalchemy/sql/selectable.py:1658
↓ 21 callers
Method
_assert_fk
(self, t2, schema, expected, referred_schema_fn=None)
test/sql/test_metadata.py:1311
↓ 21 callers
Method
_fixture
(self, naming_convention, table_schema=None)
test/sql/test_metadata.py:5771
↓ 21 callers
Method
_gen_cache_key
return an optional cache key. The cache key is a tuple which can contain any series of objects that are hashable and also identifies
lib/sqlalchemy/sql/cache_key.py:224
↓ 21 callers
Method
assert_statement_count
(self, db, count)
lib/sqlalchemy/testing/assertions.py:959
↓ 21 callers
Method
combinations
()
test/sql/test_update.py:882
↓ 21 callers
Method
difference
(self)
test/perf/compiled_extensions/collections_.py:347
↓ 21 callers
Method
exists
(name)
test/sql/test_ddlemit.py:182
↓ 21 callers
Function
fails_if
(predicate, reason=None)
lib/sqlalchemy/testing/exclusions.py:27
↓ 21 callers
Function
from_dml_column
r"""A placeholder that may be used in compiled INSERT or UPDATE expressions to refer to the SQL expression or value being applied to another colum
lib/sqlalchemy/sql/_elements_constructors.py:492
↓ 21 callers
Method
get_nested_transaction
Return the current nested transaction in progress, if any. .. versionadded:: 1.4
lib/sqlalchemy/orm/session.py:1896
↓ 21 callers
Method
load_tracker
(self, cls, canary=None)
test/orm/test_merge.py:46
↓ 21 callers
Method
render_as_string
Render this :class:`_engine.URL` object as a string. This method is used when the ``__str__()`` or ``__repr__()`` methods are used.
lib/sqlalchemy/engine/url.py:630
↓ 21 callers
Method
schema_for_object
Return the schema name for the given schema item taking into account current schema translate map.
lib/sqlalchemy/engine/base.py:214
↓ 21 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:1052
↓ 20 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:2737
↓ 20 callers
Method
_dialect
(self, native_boolean)
test/sql/test_operators.py:1455
↓ 20 callers
Method
_generate_generic_binary
( self, binary: BinaryExpression[Any], opstring: str, eager_grouping: bool = F
lib/sqlalchemy/sql/compiler.py:3662
↓ 20 callers
Method
_test
(self, expr, expected)
lib/sqlalchemy/testing/suite/test_select.py:1537
↓ 20 callers
Method
_two_obj_fixture
(self, uselist, active_history=False)
test/orm/test_attributes.py:1755
← previous
next →
401–500 of 29,075, ranked by callers