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
↓ 29 callers
Method
replace
( element: ExternallyTraversible, **kw: Any )
lib/sqlalchemy/dialects/mysql/base.py:1507
↓ 28 callers
Method
array
Text array expression. Returns array of alternating keys and values.
lib/sqlalchemy/dialects/postgresql/hstore.py:184
↓ 28 callers
Function
automap_base
r"""Produce a declarative automap base. This function produces a new base class that is a product of the :class:`.AutomapBase` class as well
lib/sqlalchemy/ext/automap.py:1422
↓ 28 callers
Method
chain
(self, visitor: ExternalTraversal)
lib/sqlalchemy/sql/util.py:1336
↓ 28 callers
Method
execute
(self, stmt, parameters=None, **kw)
test/engine/test_reconnect.py:1038
↓ 28 callers
Function
exists
()
lib/sqlalchemy/sql/operators.py:1987
↓ 28 callers
Method
isa
Return True if the this mapper inherits from the given mapper.
lib/sqlalchemy/orm/mapper.py:3387
↓ 28 callers
Method
items
Return a sequence of (key, column) tuples for all columns in this collection each consisting of a string key name and a :class:`_sql.C
lib/sqlalchemy/sql/base.py:1668
↓ 28 callers
Method
one
()
test/ext/test_hybrid.py:1121
↓ 28 callers
Method
pop
(self)
test/orm/test_collection.py:1180
↓ 28 callers
Method
process
(value: Sequence[typing_Any])
lib/sqlalchemy/dialects/postgresql/array.py:417
↓ 27 callers
Method
_queuepool_fixture
(self, **kw)
test/engine/test_pool.py:87
↓ 27 callers
Method
_raise_for_expected
( self, element: Any, argname: Optional[str] = None, resolved: Optional[Any] =
lib/sqlalchemy/sql/coercions.py:491
↓ 27 callers
Method
date
target dialect supports representation of Python datetime.date() objects.
test/requirements.py:1416
↓ 27 callers
Method
extend
(self)
test/orm/test_collection.py:700
↓ 27 callers
Function
load_only
(*attrs: _AttrType, raiseload: bool = False)
lib/sqlalchemy/orm/strategy_options.py:2448
↓ 27 callers
Method
now
(self)
lib/sqlalchemy/sql/functions.py:1207
↓ 27 callers
Function
only_if
(predicate, reason=None)
lib/sqlalchemy/testing/exclusions.py:197
↓ 27 callers
Method
params
r"""Add values for bind parameters which may have been specified in filter(). Parameters may be specified using \**kwargs, or optiona
lib/sqlalchemy/orm/query.py:1847
↓ 26 callers
Method
__init__
Construct a BIT. :param length: Optional, number of bits.
lib/sqlalchemy/dialects/mysql/types.py:428
↓ 26 callers
Method
__new__
(cls, *args: Any, **kw: Any)
lib/sqlalchemy/sql/schema.py:429
↓ 26 callers
Method
_assert_bind_args
(self, session, expect_mapped_bind=True)
test/orm/test_query.py:7621
↓ 26 callers
Method
_assert_result
(self, select, result, params=())
lib/sqlalchemy/testing/suite/test_select.py:1126
↓ 26 callers
Method
_compile_state
Create an out-of-compiler ORMCompileState object. The ORMCompileState object is normally created directly as a result of the SQLCompi
lib/sqlalchemy/orm/query.py:3324
↓ 26 callers
Method
as_readonly
Return a "read only" form of this :class:`_sql.ColumnCollection`.
lib/sqlalchemy/sql/base.py:1885
↓ 26 callers
Method
connect
(dbapi_connection, connection_record)
test/dialect/postgresql/test_dialect.py:997
↓ 26 callers
Method
construct_params
Return the bind params for this compiled object. :param params: a dict of string/object pairs whose values will overri
lib/sqlalchemy/sql/compiler.py:958
↓ 26 callers
Method
contains_column
(self, col: ColumnClause[Any])
lib/sqlalchemy/sql/base.py:2232
↓ 26 callers
Method
correlate_except
r"""Return a new :class:`_expression.Select` which will omit the given FROM clauses from the auto-correlation process. Callin
lib/sqlalchemy/sql/selectable.py:6416
↓ 26 callers
Function
dumps
(obj, protocol=pickle.HIGHEST_PROTOCOL)
lib/sqlalchemy/ext/serializer.py:174
↓ 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:1681
↓ 26 callers
Function
loads
(data, metadata=None, scoped_session=None, engine=None)
lib/sqlalchemy/ext/serializer.py:181
↓ 26 callers
Function
op
(a: Any, opstring: str, b: Any)
lib/sqlalchemy/sql/operators.py:2071
↓ 26 callers
Method
start
(self, is_ctxmanager: bool = False)
lib/sqlalchemy/ext/asyncio/base.py:114
↓ 25 callers
Method
_assert_path_result
(self, opt, q, paths)
test/orm/test_options.py:98
↓ 25 callers
Method
_data_str
return string form of a sample range
test/dialect/postgresql/test_types.py:4341
↓ 25 callers
Method
add_columns
Add one or more column expressions to the list of result columns to be returned. .. seealso:: :meth:`_sql.Select.add_col
lib/sqlalchemy/orm/query.py:1598
↓ 25 callers
Method
cast
Produce a type cast, i.e. ``CAST(<expression> AS <type>)``. This is a shortcut to the :func:`_expression.cast` function. .. seealso:
lib/sqlalchemy/sql/elements.py:1702
↓ 25 callers
Method
copy
(self, **kw: Any)
lib/sqlalchemy/sql/schema.py:2459
↓ 25 callers
Method
event_one
(self, x, y)
test/base/test_events.py:214
↓ 25 callers
Function
foreign
Annotate a portion of a primaryjoin expression with a 'foreign' annotation. See the section :ref:`relationship_custom_foreign` for a desc
lib/sqlalchemy/orm/relationships.py:230
↓ 25 callers
Method
generate_base
Generate a declarative base class. Classes that inherit from the returned class object will be automatically mapped using declarative
lib/sqlalchemy/orm/decl_api.py:1508
↓ 25 callers
Method
load_only
r"""Indicate that for a particular entity, only the given list of column-based attribute names should be loaded; all others will be de
lib/sqlalchemy/orm/strategy_options.py:163
↓ 25 callers
Method
stream
( self, statement: TypedReturnsRows[_T], params: Optional[_CoreAnyExecuteParams] = Non
lib/sqlalchemy/ext/asyncio/session.py:638
↓ 25 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:2245
↓ 24 callers
Method
_clone
(self, **kw)
lib/sqlalchemy/orm/util.py:1670
↓ 24 callers
Method
_commit_all
commit all attributes unconditionally. This is used after a flush() or a full load/refresh to remove all pending state from the insta
lib/sqlalchemy/orm/state.py:991
↓ 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:539
↓ 24 callers
Method
add
(self, *others)
lib/sqlalchemy/testing/exclusions.py:56
↓ 24 callers
Method
get_table_names
Return a list of table names for ``schema``. This is an internal dialect method. Applications should use :meth:`_engine.Inspector.get
lib/sqlalchemy/engine/interfaces.py:1474
↓ 24 callers
Method
get_transaction
Return the current root transaction in progress, if any. .. versionadded:: 1.4
lib/sqlalchemy/orm/session.py:1844
↓ 24 callers
Method
lateral
Return a new :class:`_expression.Values` with the lateral flag set, so that it renders as LATERAL. .. seealso::
lib/sqlalchemy/sql/selectable.py:3410
↓ 24 callers
Method
over
Produce an OVER clause against this :class:`.WithinGroup` construct. This function has the same signature as that of :meth:`.
lib/sqlalchemy/sql/elements.py:4399
↓ 24 callers
Method
replace
( obj: Union[BinaryExpression[Any], ColumnClause[Any]], **kw: Any, )
lib/sqlalchemy/sql/selectable.py:1385
↓ 24 callers
Method
scalar_one
(self: Result[Tuple[_T]])
lib/sqlalchemy/engine/result.py:1500
↓ 24 callers
Method
sort
(self, **kw: Any)
lib/sqlalchemy/ext/mutable.py:968
↓ 24 callers
Function
undefer
(key: _AttrType, *addl_attrs: _AttrType)
lib/sqlalchemy/orm/strategy_options.py:2525
↓ 24 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:1960
↓ 24 callers
Method
yield_per
r"""Yield only ``count`` rows at a time. The purpose of this method is when fetching very large result sets (> 10K rows), to batch re
lib/sqlalchemy/orm/query.py:1017
↓ 23 callers
Method
_assert_result
( self, connection, select, result, params=(), set_=False )
lib/sqlalchemy/testing/suite/test_select.py:206
↓ 23 callers
Method
_test_clause
(self, colclause, expected, type_)
test/dialect/postgresql/test_types.py:5433
↓ 23 callers
Method
append
(self, x: _T)
lib/sqlalchemy/ext/mutable.py:944
↓ 23 callers
Method
connect
(con, record)
test/dialect/mysql/test_dialect.py:691
↓ 23 callers
Function
creator
()
lib/sqlalchemy/ext/asyncio/engine.py:111
↓ 23 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:1634
↓ 23 callers
Method
listen
(self, *args: Any, **kw: Any)
lib/sqlalchemy/event/registry.py:285
↓ 23 callers
Method
one
Return exactly one result or raise an exception. Raises :class:`_exc.NoResultFound` if the query selects no rows. Raises :class:`_exc
lib/sqlalchemy/orm/query.py:2794
↓ 23 callers
Method
selectinload
Indicate that the given attribute should be loaded using SELECT IN eager loading. This function is part of the :class:`_orm.Load` int
lib/sqlalchemy/orm/strategy_options.py:357
↓ 23 callers
Method
shutdown
(self, stop=False)
lib/sqlalchemy/testing/engines.py:269
↓ 23 callers
Method
with_only_columns
( self, __ent0: _TCCA[_T0], *, maintain_column_froms: bool = ... )
lib/sqlalchemy/sql/selectable.py:6029
↓ 22 callers
Function
MockDBAPI
()
test/engine/test_pool.py:42
↓ 22 callers
Method
_test
(self, string, expected)
test/base/test_utils.py:3399
↓ 22 callers
Method
cursor
(self)
lib/sqlalchemy/dialects/oracle/oracledb.py:839
↓ 22 callers
Method
defer
r"""Indicate that the given column-oriented attribute should be deferred, e.g. not loaded until accessed. This function is part of th
lib/sqlalchemy/orm/strategy_options.py:581
↓ 22 callers
Method
fetchmany
(self, num=None)
test/sql/test_resultset.py:3564
↓ 22 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:726
↓ 22 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:1039
↓ 22 callers
Method
next_value
Return a :class:`.next_value` function element which will render the appropriate increment function for this :class:`.Sequence` within
lib/sqlalchemy/sql/schema.py:3929
↓ 22 callers
Method
normalize_name
convert the given name to lowercase if it is detected as case insensitive. This method is only used if the dialect defines re
lib/sqlalchemy/engine/interfaces.py:1824
↓ 22 callers
Method
pop
(self, *arg: Any)
lib/sqlalchemy/ext/mutable.py:1057
↓ 21 callers
Method
_anonymous_fromclause
( self, name: Optional[str] = None, flat: bool = False )
lib/sqlalchemy/sql/selectable.py:1614
↓ 21 callers
Method
_fixture
(self, naming_convention, table_schema=None)
test/sql/test_metadata.py:5564
↓ 21 callers
Function
_tidy
(fn)
lib/sqlalchemy/orm/collections.py:1133
↓ 21 callers
Function
clone
(elem: ExternallyTraversible, **kw: Any)
lib/sqlalchemy/sql/visitors.py:1034
↓ 21 callers
Method
concat
Implement the 'concat' operator. In a column context, produces the clause ``a || b``, or uses the ``concat()`` operator on MySQL.
lib/sqlalchemy/sql/operators.py:679
↓ 21 callers
Function
fails_if
(predicate, reason=None)
lib/sqlalchemy/testing/exclusions.py:27
↓ 21 callers
Method
keys
(duck)
test/base/test_utils.py:2219
↓ 21 callers
Method
rollback
Rollback the current transaction in progress. If no transaction is in progress, this method is a pass-through. The method always rol
lib/sqlalchemy/orm/session.py:1978
↓ 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:209
↓ 21 callers
Method
with_entities
(self, _entity: _EntityType[_O])
lib/sqlalchemy/orm/query.py:1469
↓ 20 callers
Method
__clause_element__
(self)
test/orm/test_query.py:2782
↓ 20 callers
Method
_dialect
(self, native_boolean)
test/sql/test_operators.py:1303
↓ 20 callers
Method
_option_fixture
(self, *arg)
test/orm/test_options.py:414
↓ 20 callers
Method
_refresh_for_new_column
(self, column: ColumnElement[Any])
lib/sqlalchemy/sql/selectable.py:1403
↓ 20 callers
Method
_two_obj_fixture
(self, uselist, active_history=False)
test/orm/test_attributes.py:1755
↓ 20 callers
Method
_type_fixture
(cls)
test/ext/test_mutable.py:1536
↓ 20 callers
Method
array_agg
( self, col: ColumnElement[_T], *args: _ColumnExpressionOrLiteralArgument[
lib/sqlalchemy/sql/functions.py:1017
↓ 20 callers
Method
exists
(name)
test/sql/test_ddlemit.py:152
↓ 20 callers
Function
find_unmatching_froms
(query, start=None)
test/sql/test_from_linter.py:21
↓ 20 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:1518
← previous
next →
301–400 of 28,030, ranked by callers