MCPcopy Create free account

hub / github.com/sqlalchemy/sqlalchemy / functions

Functions29,075 in github.com/sqlalchemy/sqlalchemy

↓ 163 callersMethodstartswith
r"""Implement the ``startswith`` operator. Produces a LIKE expression that tests against a match for the start of a string value:
lib/sqlalchemy/sql/operators.py:1267
↓ 162 callersMethodlisten
(self, attr)
test/orm/test_collection.py:66
↓ 161 callersMethodlower
(s: str)
lib/sqlalchemy/dialects/mysql/base.py:3378
↓ 151 callersFunctioninsert
(fn)
lib/sqlalchemy/orm/collections.py:1102
↓ 149 callersMethodcorresponding_column
( self, column: KeyedColumnElement[Any], require_embedded: bool = False )
lib/sqlalchemy/sql/dml.py:853
↓ 148 callersMethodunion
(self)
test/perf/compiled_extensions/collections_.py:327
↓ 146 callersMethodwith_for_update
return a new :class:`_query.Query` with the specified options for the ``FOR UPDATE`` clause. The behavior of this method is i
lib/sqlalchemy/orm/query.py:1795
↓ 145 callersMethodassert_sql_execution
(self, db, callable_, *rules)
lib/sqlalchemy/testing/assertions.py:929
↓ 143 callersMethodappend
(self, obj)
test/ext/test_associationproxy.py:62
↓ 142 callersFunctionexpect_warnings
Context manager which expects one or more warnings. With no arguments, squelches all SAWarning emitted via sqlalchemy.util.warn and sqlalchem
lib/sqlalchemy/testing/assertions.py:37
↓ 140 callersMethod_annotate
(self, values: _AnnotationDict)
lib/sqlalchemy/sql/annotation.py:299
↓ 140 callersMethodtraverse
(self, obj: Literal[None])
lib/sqlalchemy/sql/util.py:1112
↓ 139 callersMethodcompare
(self: CompareProtocol, other: CompareProtocol)
test/typing/plain_files/orm/declared_attr_three.py:25
↓ 139 callersFunctiontesting_engine
( url: Optional[URL] = ..., options: Optional[Dict[str, Any]] = ..., *, asyncio: Literal[False
lib/sqlalchemy/testing/engines.py:305
↓ 133 callersFunctioncreate_engine
( url: Union[str, URL], *, connect_args: Dict[Any, Any] = ..., convert_unicode: bool = ...,
lib/sqlalchemy/engine/create.py:50
↓ 129 callersMethodquery
(self, _entity: _EntityType[_O])
lib/sqlalchemy/orm/session.py:2953
↓ 128 callersMethodoffset
Apply an ``OFFSET`` to the query and return the newly resulting ``Query``. .. seealso:: :meth:`_sql.Select.offset` - v2
lib/sqlalchemy/orm/query.py:2664
↓ 128 callersFunctionunion
( *selects: _TypedSelectable[Unpack[_Ts]], )
lib/sqlalchemy/sql/_selectable_constructors.py:691
↓ 126 callersMethodexecute
( self, statement: TypedReturnsRows[Unpack[_Ts]], params: Optional[_CoreAnyExecutePara
lib/sqlalchemy/orm/session.py:2364
↓ 126 callersMethodobject
Return the mapped object represented by this :class:`.InstanceState`. Returns None if the object has been garbage collected
lib/sqlalchemy/orm/state.py:399
↓ 124 callersFunctionselectinload
( *keys: _AttrType, recursion_depth: Optional[int] = None, chunksize: Optional[int] = None, )
lib/sqlalchemy/orm/strategy_options.py:2461
↓ 123 callersMethodand_
( self, *criteria: _ColumnExpressionArgument[bool] )
lib/sqlalchemy/orm/base.py:685
↓ 123 callersMethodcolumns
(self)
test/sql/test_metadata.py:4561
↓ 123 callersMethodtesting_engine
(self)
lib/sqlalchemy/testing/fixtures/base.py:171
↓ 122 callersMethodfetchall
(self)
test/sql/test_resultset.py:3654
↓ 120 callersMethodcolumn
Return the target :class:`_schema.Column` referenced by this :class:`_schema.ForeignKey`. If no target column has been established, a
lib/sqlalchemy/sql/schema.py:3496
↓ 120 callersFunctionexpect_raises
(except_cls, check_context=True)
lib/sqlalchemy/testing/assertions.py:501
↓ 119 callersMethodmerge
Copy the state of a given instance into a corresponding instance within this :class:`.Session`. :meth:`.Session.merge` examines the p
lib/sqlalchemy/orm/session.py:4017
↓ 118 callersMethodsplit
( self, sep: str | None = None, maxsplit: SupportsIndex = -1, )
lib/sqlalchemy/dialects/postgresql/bitstring.py:182
↓ 117 callersMethodgroup_by
Apply one or more GROUP BY criterion to the query and return the newly resulting :class:`_query.Query`. All existing GROUP BY setting
lib/sqlalchemy/orm/query.py:2079
↓ 116 callersMethodappend
Receive a collection append event. The append event is invoked for each element as it is appended to the collection. This occurs for
lib/sqlalchemy/orm/events.py:2546
↓ 112 callersMethodclosed
Return ``True`` if this :class:`_engine.Result` was **hard closed** by explicitly calling the :meth:`close` method. The attribute is
lib/sqlalchemy/engine/result.py:556
↓ 112 callersFunctioncolumn_property
r"""Provide a column-level property for use with a mapping. With Declarative mappings, :func:`_orm.column_property` is used to map read-only
lib/sqlalchemy/orm/_orm_constructors.py:461
↓ 112 callersFunctiondeclarative_base
r"""Construct a base class for declarative class definitions. The new base class will be given a metaclass that produces appropriate :class:`
lib/sqlalchemy/orm/decl_api.py:1042
↓ 111 callersMethodremove
(self, obj, value, initiator)
test/orm/test_collection.py:84
↓ 111 callersMethodunique
Apply unique filtering to the objects returned by this :class:`_engine.Result`. When this filter is applied with no arguments, the ro
lib/sqlalchemy/engine/result.py:627
↓ 110 callersFunction_register_attribute
(class_, key, **kw)
test/orm/test_attributes.py:41
↓ 110 callersMethodlike
r"""Implement the ``like`` operator. In a column context, produces the expression: .. sourcecode:: sql a LIKE other
lib/sqlalchemy/sql/operators.py:898
↓ 109 callersMethodconnection
(self)
test/dialect/postgresql/test_dialect.py:787
↓ 107 callersFunctionconfigure_mappers
Initialize the inter-mapper relationships of all mappers that have been constructed thus far across all :class:`_orm.registry` collections.
lib/sqlalchemy/orm/mapper.py:4101
↓ 107 callersFunctiondeferred
r"""Indicate a column-based mapped attribute that by default will not load unless accessed. When using :func:`_orm.mapped_column`, the same f
lib/sqlalchemy/orm/_orm_constructors.py:2227
↓ 106 callersMethodconnect
(*args, **kwargs)
test/engine/test_execute.py:3592
↓ 106 callersFunctiontrue
Return a constant :class:`.True_` construct. E.g.: .. sourcecode:: pycon+sql >>> from sqlalchemy import true >>> print(sele
lib/sqlalchemy/sql/_elements_constructors.py:1920
↓ 105 callersMethodbegin_nested
Begin a "nested" transaction on this Session, e.g. SAVEPOINT. The target database(s) and associated drivers must support SQL SAVEPOIN
lib/sqlalchemy/orm/session.py:1993
↓ 105 callersMethodjoin
r"""Create a SQL JOIN against this :class:`_expression.Select` object's criterion and apply generatively, returning the newly resultin
lib/sqlalchemy/sql/selectable.py:5781
↓ 104 callersMethodin_transaction
Return True if this :class:`_orm.Session` has begun a transaction. .. versionadded:: 1.4 .. seealso:: :attr:`_orm.Sessi
lib/sqlalchemy/orm/session.py:1863
↓ 103 callersFunctiongo
()
test/aaa_profiling/test_memusage.py:75
↓ 103 callersMethodscalar
Return the first element of the first result or None if no rows present. If multiple rows are returned, raises :class:`_exc.MultipleR
lib/sqlalchemy/orm/query.py:2874
↓ 100 callersFunctiongreenlet_spawn
Runs a sync function ``fn`` in a new greenlet. The sync function can then use :func:`await_` to wait for async functions. :param fn: The
lib/sqlalchemy/util/concurrency.py:177
↓ 99 callersFunctioninsert
Construct a PostgreSQL-specific variant :class:`_postgresql.Insert` construct. .. container:: inherited_member The :func:`sqlalchemy
lib/sqlalchemy/dialects/postgresql/dml.py:44
↓ 99 callersFunctionor_
Produce a conjunction of expressions joined by ``OR``. E.g.:: from sqlalchemy import or_ stmt = select(users_table).where(
lib/sqlalchemy/sql/_elements_constructors.py:1511
↓ 99 callersMethodscalars
( self, statement: TypedReturnsRows[_T], params: Optional[_CoreAnyExecuteParams] = Non
lib/sqlalchemy/orm/session.py:2525
↓ 98 callersMethoddesc
(self)
test/orm/test_inspect.py:428
↓ 98 callersMethodfail
(*arg, **kw)
test/engine/test_transaction.py:385
↓ 98 callersMethodon_conflict_do_update
r""" Specifies a DO UPDATE SET action for ON CONFLICT clause. :param index_elements: A sequence consisting of string column
lib/sqlalchemy/dialects/sqlite/dml.py:114
↓ 98 callersMethodpop
(self)
test/orm/test_collection.py:1181
↓ 96 callersMethodover
Produce an OVER clause against this filtered function. Used against aggregate or so-called "window" functions, for database backends
lib/sqlalchemy/sql/elements.py:4958
↓ 95 callersMethodfrom_statement
Execute the given SELECT statement and return results. This method bypasses all internal statement compilation, and the statement is
lib/sqlalchemy/orm/query.py:2772
↓ 95 callersFunctiononly_on
(dbs, reason=None)
lib/sqlalchemy/testing/exclusions.py:460
↓ 94 callersMethodexecute
(self, operation, args=(), stream=None)
lib/sqlalchemy/dialects/postgresql/pg8000.py:352
↓ 93 callersFunctionne_
Assert a != b, with repr messaging on failure.
lib/sqlalchemy/testing/assertions.py:295
↓ 92 callersFunctionis_not
Assert a is not b, with repr messaging on failure.
lib/sqlalchemy/testing/assertions.py:330
↓ 91 callersFunctionin_
Assert a in b, with repr messaging on failure.
lib/sqlalchemy/testing/assertions.py:339
↓ 91 callersFunctionskip_if
(predicate, reason=None)
lib/sqlalchemy/testing/exclusions.py:20
↓ 90 callersMethodcorrelate
Return a :class:`.Query` construct which will correlate the given FROM clauses to that of an enclosing :class:`.Query` or :func:`~.exp
lib/sqlalchemy/orm/query.py:1181
↓ 90 callersMethoddumps
(value)
test/dialect/postgresql/test_dialect.py:1576
↓ 90 callersFunctionsubqueryload
(*keys: _AttrType)
lib/sqlalchemy/orm/strategy_options.py:2456
↓ 89 callersMethodany
( # noqa: A001 self, criterion: Optional[_ColumnExpressionArgument[bool]] = None,
lib/sqlalchemy/orm/base.py:689
↓ 89 callersMethodop
Produce a generic operator function. e.g.:: somecolumn.op("*")(5) produces:: somecolumn * 5 This func
lib/sqlalchemy/sql/operators.py:271
↓ 88 callersMethod_compiler_dispatch
(self, visitor: Any, **kw: Any)
lib/sqlalchemy/sql/visitors.py:89
↓ 88 callersMethodloads
(value)
test/dialect/postgresql/test_dialect.py:1571
↓ 86 callersFunctionassociation_proxy
r"""Return a Python property implementing a view of a target attribute which references an attribute on members of the target. The return
lib/sqlalchemy/ext/associationproxy.py:86
↓ 86 callersFunctionbackref
When using the :paramref:`_orm.relationship.backref` parameter, provides specific parameters to be used when the new :func:`_orm.relationship`
lib/sqlalchemy/orm/_orm_constructors.py:2203
↓ 83 callersMethodagainst
(other: Any)
lib/sqlalchemy/sql/operators.py:395
↓ 83 callersFunctionawait_
Awaits an async function in a sync method. The sync method must be inside a :func:`greenlet_spawn` context. :func:`await_` calls cannot be ne
lib/sqlalchemy/util/concurrency.py:147
↓ 82 callersFunctionclass_mapper
Given a class, return the primary :class:`_orm.Mapper` associated with the key. Raises :exc:`.UnmappedClassError` if no mapping is configured
lib/sqlalchemy/orm/base.py:544
↓ 81 callersMethodflush
Flush all the object changes to the database. Writes out all pending object creations, deletions and modifications to the database as
lib/sqlalchemy/orm/session.py:4479
↓ 81 callersMethodget
given cursor.lastrowid value and the parameters used for INSERT, return a "row" that represents the primary key, either by usi
lib/sqlalchemy/sql/compiler.py:2369
↓ 80 callersFunctioncast
r"""Produce a ``CAST`` expression. :func:`.cast` returns an instance of :class:`.Cast`. E.g.:: from sqlalchemy import cast, Numeric
lib/sqlalchemy/sql/_elements_constructors.py:913
↓ 80 callersMethodget
Retrieve an object based on identity. Equivalent to :meth:`_query.Query.get`.
lib/sqlalchemy/ext/baked.py:480
↓ 80 callersMethodhas
( self, criterion: Optional[_ColumnExpressionArgument[bool]] = None, **kwa
lib/sqlalchemy/orm/base.py:695
↓ 80 callersMethodvalues
Return an iterator yielding result tuples corresponding to the given list of columns
lib/sqlalchemy/orm/query.py:1444
↓ 79 callersMethoddatetime
target dialect supports representation of Python datetime.datetime() objects.
test/requirements.py:1384
↓ 79 callersMethoddrop_all
Drop all tables stored in this metadata. Conditional by default, will not attempt to drop tables not present in the target database.
lib/sqlalchemy/sql/schema.py:6324
↓ 79 callersMethodget_columns
Return information about columns in ``table_name``. Given a :class:`_engine.Connection`, a string ``table_name``, and an optional str
lib/sqlalchemy/engine/interfaces.py:1362
↓ 79 callersMethodintersection
(self, other)
lib/sqlalchemy/testing/util.py:97
↓ 79 callersMethodpop
( self, state: InstanceState[Any], dict_: _InstanceDict, value: Any, i
lib/sqlalchemy/orm/attributes.py:1152
↓ 78 callersMethodappend_constraint
Append a :class:`_schema.Constraint` to this :class:`_schema.Table`. This has the effect of the constraint being included in any
lib/sqlalchemy/sql/schema.py:1507
↓ 77 callersMethodsetdefault
( self: MutableDict[_KT, Optional[_T]], key: _KT, value: None = None )
lib/sqlalchemy/ext/mutable.py:818
↓ 76 callersMethoddispose
Dispose of this pool. This method leaves the possibility of checked-out connections remaining open, as it only affects connections th
lib/sqlalchemy/pool/base.py:423
↓ 76 callersFunctionnormalize_sequence
Normalize sequence parameters for dialect that don't start with 1 by default. The default implementation does nothing
lib/sqlalchemy/testing/provision.py:542
↓ 76 callersMethodreturn_defaults
Make use of a :term:`RETURNING` clause for the purpose of fetching server-side expressions and defaults, for supporting backends only.
lib/sqlalchemy/sql/dml.py:500
↓ 75 callersMethodbegin
Return a context manager delivering a :class:`_engine.Connection` with a :class:`.Transaction` established. E.g.:: with
lib/sqlalchemy/engine/base.py:3200
↓ 75 callersFunctionnot_in
Assert a in not b, with repr messaging on failure.
lib/sqlalchemy/testing/assertions.py:344
↓ 74 callersMethoditems
Return a view of key/value tuples for the elements in the underlying :class:`.Row`.
lib/sqlalchemy/engine/row.py:375
↓ 74 callersFunctionjoin
r"""Produce an inner join between left and right clauses. :func:`_orm.join` is an extension to the core join interface provided by :func:`_ex
lib/sqlalchemy/orm/_orm_constructors.py:2623
↓ 73 callersMethoddifference
(self, other)
lib/sqlalchemy/testing/util.py:94
↓ 73 callersFunctionnull
Return a constant :class:`.Null` construct.
lib/sqlalchemy/sql/_elements_constructors.py:1381
↓ 73 callersMethodreferences
Return True if this Column references the given column via foreign key.
lib/sqlalchemy/sql/schema.py:2544
↓ 72 callersMethod_someattr_history
(self, f, **kw)
test/orm/test_attributes.py:1774
← previousnext →101–200 of 29,075, ranked by callers