MCPcopy Create free account

hub / github.com/sqlalchemy/sqlalchemy / functions

Functions29,075 in github.com/sqlalchemy/sqlalchemy

↓ 42 callersFunctioncache
( fn: Callable[..., _R], self: Dialect, con: Connection, *args: Any, **kw: Any, )
lib/sqlalchemy/engine/reflection.py:81
↓ 42 callersMethodclear
Clear all objects from this MetaData.
lib/sqlalchemy/sql/schema.py:6018
↓ 42 callersMethodclear
(self)
test/orm/test_collection.py:1190
↓ 42 callersMethodone
()
test/ext/test_hybrid.py:1156
↓ 41 callersMethoddata
(self)
test/orm/inheritance/test_basic.py:2615
↓ 41 callersFunctioninsert
Construct a sqlite-specific variant :class:`_sqlite.Insert` construct. .. container:: inherited_member The :func:`sqlalchemy.dialect
lib/sqlalchemy/dialects/sqlite/dml.py:42
↓ 41 callersMethodsql_count_
(self, count, fn)
lib/sqlalchemy/testing/fixtures/sql.py:184
↓ 40 callersMethod__clause_element__
(self)
test/orm/test_query.py:2781
↓ 40 callersMethod_commit_someattr
(self, f)
test/orm/test_attributes.py:1785
↓ 40 callersMethodcast
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:1764
↓ 40 callersMethodget_history
(self, key: str, passive: PassiveFlag)
lib/sqlalchemy/orm/state.py:600
↓ 40 callersFunctioninstance_state
(instance: _O)
lib/sqlalchemy/orm/base.py:330
↓ 40 callersMethodrun_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:341
↓ 40 callersMethodwith_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:881
↓ 39 callersMethodappend
(self, node)
test/orm/test_subquery_relations.py:2444
↓ 39 callersMethodconstruct_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:982
↓ 39 callersMethodfetchone
(self)
test/perf/compiled_extensions/result.py:364
↓ 39 callersFunctionpolymorphic_union
Create a ``UNION`` statement used by a polymorphic mapper. See :ref:`concrete_inheritance` for an example of how this is used. :param t
lib/sqlalchemy/orm/util.py:330
↓ 39 callersMethodupdate_type_annotation_map
update the :paramref:`_orm.registry.type_annotation_map` with new values.
lib/sqlalchemy/orm/decl_api.py:1275
↓ 38 callersMethod_clone
(self, **kw)
lib/sqlalchemy/orm/util.py:1689
↓ 38 callersFunctionassert_warns_message
legacy adapter function for functions that were previously using assert_raises with SAWarning or similar. has some workarounds to accommodate
lib/sqlalchemy/testing/assertions.py:420
↓ 38 callersFunctioncol
(name, table)
lib/sqlalchemy/orm/util.py:377
↓ 38 callersMethoddefer
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:587
↓ 38 callersFunctiondesc
( column: Union[str, "ColumnElement[_T]"], )
lib/sqlalchemy/sql/_elements_constructors.py:1115
↓ 38 callersMethodreplace
( obj: Union[BinaryExpression[Any], ColumnClause[Any]], **kw: Any, )
lib/sqlalchemy/sql/selectable.py:1422
↓ 37 callersMethod_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:3386
↓ 37 callersFunctionagainst
(config, *queries)
lib/sqlalchemy/testing/exclusions.py:472
↓ 37 callersMethodget_foreign_keys
Return information about foreign_keys in ``table_name``. Given a :class:`_engine.Connection`, a string ``table_name``, and an optiona
lib/sqlalchemy/engine/interfaces.py:1459
↓ 37 callersMethodnow
(self)
lib/sqlalchemy/sql/functions.py:1256
↓ 37 callersMethodselectinload
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:358
↓ 36 callersMethod_assert_result
( self, connection, select, result, params=None, set_=False )
lib/sqlalchemy/testing/suite/test_select.py:212
↓ 36 callersMethod_operation_context
Return a context that optimizes for multiple operations on a single transaction. This essentially allows connect()/close() to be call
lib/sqlalchemy/engine/reflection.py:321
↓ 36 callersMethodis_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:730
↓ 36 callersFunctionis_instance_of
(a, b, msg=None)
lib/sqlalchemy/testing/assertions.py:305
↓ 36 callersMethoditems
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:1911
↓ 36 callersMethodload_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:164
↓ 36 callersFunctionlocals
(**kwargs: Any)
lib/sqlalchemy/util/cython.py:70
↓ 36 callersMethodwith_only_columns
( self, __ent0: _TCCA[_T0], /, *, maintain_column_froms: bool = ... )
lib/sqlalchemy/sql/selectable.py:6288
↓ 35 callersMethod_fixture
(self)
test/sql/test_metadata.py:5295
↓ 35 callersMethodadd_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:1619
↓ 35 callersMethodpop
(self, *arg: Any)
lib/sqlalchemy/ext/mutable.py:1053
↓ 35 callersMethodreplace
( element: ExternallyTraversible, **kw: Any )
lib/sqlalchemy/dialects/mysql/base.py:1484
↓ 35 callersMethodwith_entities
(self, _entity: _EntityType[_O])
lib/sqlalchemy/orm/query.py:1482
↓ 34 callersMethodarray_agg
( self, col: ColumnElement[_T], *args: _ColumnExpressionOrLiteralArgument[
lib/sqlalchemy/sql/functions.py:1066
↓ 34 callersFunctiondumps
(obj, protocol=pickle.HIGHEST_PROTOCOL)
lib/sqlalchemy/ext/serializer.py:174
↓ 34 callersMethodget_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:1507
↓ 34 callersFunctionloads
(data, metadata=None, scoped_session=None, engine=None)
lib/sqlalchemy/ext/serializer.py:181
↓ 34 callersMethodon_conflict_do_nothing
Specifies a DO NOTHING action for ON CONFLICT clause. :param index_elements: A sequence consisting of string column names,
lib/sqlalchemy/dialects/sqlite/dml.py:165
↓ 34 callersMethodone
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:2851
↓ 33 callersMethoddefaultload
Indicate an attribute should load using its predefined loader style. The behavior of this loading option is to not change the current
lib/sqlalchemy/orm/strategy_options.py:548
↓ 33 callersFunctionfind_unmatching_froms
(query, start=None)
test/sql/test_from_linter.py:21
↓ 33 callersFunctionforeign
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:238
↓ 33 callersMethodget_isolation_level
(connection)
test/dialect/oracle/test_dialect.py:207
↓ 33 callersMethodisa
Return True if the this mapper inherits from the given mapper.
lib/sqlalchemy/orm/mapper.py:3345
↓ 33 callersMethodprocess
(element, compiler, **kw)
test/sql/test_labels.py:826
↓ 33 callersMethodregexp_replace
(self)
test/requirements.py:2110
↓ 33 callersMethodrun_event
(self, arg)
test/base/test_events.py:985
↓ 32 callersMethod_fixture
(self)
test/sql/test_compiler.py:7427
↓ 32 callersMethodappend
(self, x: _T)
lib/sqlalchemy/ext/mutable.py:940
↓ 32 callersMethodwrite
(c, t)
test/sql/test_metadata.py:158
↓ 31 callersMethod_query_equivalent
(self, q_proxy, q_direct)
test/ext/test_associationproxy.py:1829
↓ 31 callersMethod_run_cache_key_fixture
(self, fixture, *, compare_values=False)
lib/sqlalchemy/testing/fixtures/sql.py:359
↓ 31 callersMethodappend
(self, node)
test/orm/test_eager_relations.py:4623
↓ 31 callersMethodconnect
(dbapi_connection, connection_record)
test/dialect/postgresql/test_dialect.py:996
↓ 31 callersMethodcopy
(self)
test/perf/compiled_extensions/collections_.py:414
↓ 31 callersMethodget_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:3300
↓ 31 callersFunctioninsert
Construct a MySQL/MariaDB-specific variant :class:`_mysql.Insert` construct. .. container:: inherited_member The :func:`sqlalchemy.d
lib/sqlalchemy/dialects/mysql/dml.py:86
↓ 31 callersMethodreplace
(elem)
test/sql/test_selectable.py:736
↓ 31 callersMethodtime
target dialect supports representation of Python datetime.time() objects.
test/requirements.py:1513
↓ 31 callersMethodyield_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:1035
↓ 30 callersMethod_assert_path_result
(self, opt, q, paths)
test/orm/test_options.py:98
↓ 30 callersMethodappend
(self, item)
lib/sqlalchemy/util/_collections.py:286
↓ 30 callersMethodchain
(self, visitor: ExternalTraversal)
lib/sqlalchemy/sql/util.py:1348
↓ 30 callersMethodconcat
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:879
↓ 30 callersMethodnext_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:4293
↓ 30 callersFunctionundefer
(key: _AttrType)
lib/sqlalchemy/orm/strategy_options.py:2514
↓ 29 callersMethod__new__
(cls, *args: Any, **kw: Any)
lib/sqlalchemy/sql/schema.py:482
↓ 29 callersFunction_tidy
(fn)
lib/sqlalchemy/orm/collections.py:1081
↓ 29 callersMethodchanged
Subclasses should call this method whenever change events occur.
lib/sqlalchemy/ext/mutable.py:616
↓ 29 callersFunctionclone
(elem: ExternallyTraversible, **kw: Any)
lib/sqlalchemy/sql/visitors.py:1027
↓ 29 callersMethodgenerate_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:1554
↓ 29 callersMethodkeys
(self)
test/engine/test_execute.py:638
↓ 29 callersFunctionpicklers
()
lib/sqlalchemy/testing/util.py:58
↓ 29 callersMethodscalar_one
Return exactly one scalar result or raise an exception. This is equivalent to calling :meth:`_engine.Result.scalars` and then :meth:`
lib/sqlalchemy/engine/result.py:1053
↓ 28 callersMethod_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:996
↓ 28 callersMethod_raise_for_expected
( self, element: Any, argname: Optional[str] = None, resolved: Optional[Any] =
lib/sqlalchemy/sql/coercions.py:500
↓ 28 callersMethodapply_syntax_extension_point
Apply a :class:`.SyntaxExtension` to a known extension point. Should be used only internally by :class:`.SyntaxExtension`. E.g.::
lib/sqlalchemy/sql/base.py:1146
↓ 28 callersFunctionautomap_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 callersMethodconnect
(con, record)
test/dialect/mysql/test_dialect.py:691
↓ 28 callersMethodcopy
(self, **kw: Any)
lib/sqlalchemy/sql/schema.py:2734
↓ 28 callersMethodcorrelate_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:6703
↓ 28 callersMethodfoobar
(self)
test/orm/declarative/test_basic.py:712
↓ 28 callersMethodlateral
Return a new :class:`_expression.Values` with the lateral flag set, so that it renders as LATERAL. .. seealso::
lib/sqlalchemy/sql/selectable.py:3486
↓ 28 callersMethodprocess
(value)
lib/sqlalchemy/dialects/sqlite/base.py:1274
↓ 28 callersMethodrollback
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:2019
↓ 28 callersMethodsort
(self, **kw: Any)
lib/sqlalchemy/ext/mutable.py:964
↓ 28 callersFunctionstate_str
Return a string describing an instance via its InstanceState.
lib/sqlalchemy/orm/base.py:360
↓ 28 callersFunctiontype_coerce
r"""Associate a SQL expression with a particular type, without rendering ``CAST``. E.g.:: from sqlalchemy import type_coerce
lib/sqlalchemy/sql/_elements_constructors.py:1985
↓ 28 callersFunctionwith_expression
( key: _AttrType, expression: _ColumnExpressionArgument[Any] )
lib/sqlalchemy/orm/strategy_options.py:2525
↓ 27 callersMethod__init__
Construct a BIT. :param length: Optional, number of bits.
lib/sqlalchemy/dialects/mysql/types.py:438
← previousnext →301–400 of 29,075, ranked by callers