MCPcopy Create free account

hub / github.com/sqlalchemy/sqlalchemy / functions

Functions29,075 in github.com/sqlalchemy/sqlalchemy

↓ 72 callersFunctionsynonym
Denote an attribute name as a synonym to a mapped property, in that the attribute will mirror the value and expression behavior of another att
lib/sqlalchemy/orm/_orm_constructors.py:1973
↓ 71 callersMethodconnect
()
test/engine/test_reconnect.py:939
↓ 71 callersMethodsub
(self)
test/perf/compiled_extensions/collections_.py:353
↓ 70 callersMethoddistinct
r"""Apply a ``DISTINCT`` to the query and return the newly resulting ``Query``. .. note:: The ORM-level :meth:`.distinc
lib/sqlalchemy/orm/query.py:2677
↓ 70 callersFunctionexpect_deprecated
(*messages, **kw)
lib/sqlalchemy/testing/assertions.py:86
↓ 70 callersMethodwarn
(self, stmt_type="SELECT")
lib/sqlalchemy/sql/compiler.py:784
↓ 69 callersFunctioncontains_eager
(*keys: _AttrType, **kw: Any)
lib/sqlalchemy/orm/strategy_options.py:2437
↓ 68 callersFunctioncomposite
( _class_or_attr: _CompositeAttrType[Any], /, *attrs: _CompositeAttrType[Any], group: Optional
lib/sqlalchemy/orm/_orm_constructors.py:635
↓ 68 callersMethodprocess
(self, obj: Visitable, **kwargs: Any)
lib/sqlalchemy/sql/compiler.py:971
↓ 67 callersMethod_fixture
( self, extras=None, alt_row=None, num_rows=None, default_filters=None
test/base/test_result.py:293
↓ 67 callersMethodprepare
sample prepare method
test/orm/declarative/test_basic.py:1343
↓ 66 callersMethodadd
( # type: ignore[override] self, column: _NAMEDCOL, key: Optional[str] = None,
lib/sqlalchemy/sql/base.py:2316
↓ 66 callersMethodappend_column
Append a :class:`_schema.Column` to this :class:`_schema.Table`. The "key" of the newly added :class:`_schema.Column`, i.e. the value
lib/sqlalchemy/sql/schema.py:1473
↓ 65 callersMethodcoerce
(cls, key, value)
test/ext/test_mutable.py:104
↓ 65 callersMethodhas_table
For internal dialect use, check the existence of a particular table or view in the database. Given a :class:`_engine.Connection` obje
lib/sqlalchemy/engine/interfaces.py:1875
↓ 65 callersMethoditems
(self)
lib/sqlalchemy/orm/identity.py:235
↓ 65 callersMethodone
()
test/sql/test_compare.py:1011
↓ 64 callersMethodclose
Close out the transactional resources and ORM objects used by this :class:`_orm.Session`. This expunges all ORM objects associated wi
lib/sqlalchemy/orm/session.py:2584
↓ 64 callersMethodexpunge
Remove the `instance` from this ``Session``. This will free all internal references to the instance. Cascading will be applied accor
lib/sqlalchemy/orm/session.py:3407
↓ 64 callersMethodextend
(self, cols: Iterable[Any])
lib/sqlalchemy/sql/base.py:2571
↓ 64 callersMethodfetch
r"""Return a new selectable with the given FETCH FIRST criterion applied. This is a numeric value which usually renders as ``FETCH {F
lib/sqlalchemy/sql/selectable.py:4362
↓ 63 callersMethodcontains_column
(self, col: ColumnClause[Any])
lib/sqlalchemy/sql/base.py:2568
↓ 63 callersMethodext
Applies a SQL syntax extension to this statement. .. seealso:: :ref:`examples_syntax_extensions` :func:`_mysql.limi
lib/sqlalchemy/orm/query.py:2727
↓ 63 callersMethoditems
(*ids)
test/orm/test_lazy_relations.py:611
↓ 63 callersMethodwith_variant
r"""Produce a copy of this type object that will utilize the given type when applied to the dialect of the given name. e.g.::
lib/sqlalchemy/sql/type_api.py:706
↓ 62 callersMethoddate
target dialect supports representation of Python datetime.date() objects.
test/requirements.py:1491
↓ 61 callersMethodarray
Text array expression. Returns array of alternating keys and values.
lib/sqlalchemy/dialects/postgresql/hstore.py:201
↓ 61 callersFunctioneq_regex
(a, b, msg=None, flags=0)
lib/sqlalchemy/testing/assertions.py:286
↓ 61 callersMethodfrom_select
Return a new :class:`_expression.Insert` construct which represents an ``INSERT...FROM SELECT`` statement. e.g.:: sel =
lib/sqlalchemy/sql/dml.py:1316
↓ 61 callersFunctiontstring
r"""Construct a new :class:`_expression.TString` clause, representing a SQL template string using Python 3.14+ t-strings. .. versionadded:: 2
lib/sqlalchemy/sql/_elements_constructors.py:1840
↓ 60 callersMethodcontains
(self)
test/perf/compiled_extensions/row.py:303
↓ 59 callersMethodfoo
(ctx)
test/sql/test_insert.py:869
↓ 58 callersMethod_create_result_map
utility method used for unit tests only.
lib/sqlalchemy/sql/compiler.py:2298
↓ 58 callersMethodconfigure
Configure all as-yet unconfigured mappers in this :class:`_orm.registry`. The configure step is used to reconcile and initialize the
lib/sqlalchemy/orm/decl_api.py:1477
↓ 58 callersMethodcreate
()
test/engine/test_pool.py:1224
↓ 58 callersMethodreflect
( self, bind: Engine, schema: Optional[str] = ..., views: bool = ...,
lib/sqlalchemy/sql/schema.py:6083
↓ 58 callersMethodto_metadata
Return a copy of this :class:`_schema.Table` associated with a different :class:`_schema.MetaData`. E.g.:: m1 = MetaData
lib/sqlalchemy/sql/schema.py:1600
↓ 57 callersFunctiondelete
r"""Construct :class:`_expression.Delete` object. E.g.:: from sqlalchemy import delete stmt = delete(user_table).where(user_tab
lib/sqlalchemy/sql/_dml_constructors.py:111
↓ 57 callersMethodprocess
(value: Sequence[typing_Any])
lib/sqlalchemy/dialects/postgresql/array.py:432
↓ 57 callersMethodregexp_match
(self)
test/requirements.py:2106
↓ 57 callersFunctionwith_loader_criteria
Add additional WHERE criteria to the load for all occurrences of a particular entity. .. versionadded:: 1.4 The :func:`_orm.with_loader_
lib/sqlalchemy/orm/_orm_constructors.py:860
↓ 56 callersMethodprocess
(value: Optional[Iterable[int]])
lib/sqlalchemy/dialects/mysql/types.py:455
↓ 55 callersFunctioncase
r"""Produce a ``CASE`` expression. The ``CASE`` construct in SQL is a conditional object that acts somewhat analogously to an "if/then" const
lib/sqlalchemy/sql/_elements_constructors.py:794
↓ 55 callersFunctiondefaultload
(*keys: _AttrType)
lib/sqlalchemy/orm/strategy_options.py:2499
↓ 55 callersMethodjoin_from
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:5890
↓ 55 callersMethodupdate
Generate an :func:`_expression.update` construct against this :class:`_expression.TableClause`. E.g.:: table.update().wh
lib/sqlalchemy/sql/selectable.py:3295
↓ 54 callersMethodendswith
r"""Implement the 'endswith' operator. Produces a LIKE expression that tests against a match for the end of a string value:
lib/sqlalchemy/sql/operators.py:1445
↓ 54 callersMethodget_transaction
Return the current root transaction in progress, if any. .. versionadded:: 1.4
lib/sqlalchemy/orm/session.py:1885
↓ 54 callersMethodquote
Conditionally quote an identifier. The identifier is quoted if it is a reserved word, contains quote-necessary characters, or is an i
lib/sqlalchemy/sql/compiler.py:8060
↓ 54 callersMethodsubqueryload
Indicate that the given attribute should be loaded using subquery eager loading. This function is part of the :class:`_orm.Load` inte
lib/sqlalchemy/orm/strategy_options.py:328
↓ 53 callersMethod_test
(self, clause, expected, entity=None, checkparams=None)
test/orm/test_query.py:1565
↓ 53 callersMethoddrop
Issue a ``DROP`` statement for this :class:`_schema.Table`, using the given :class:`.Connection` or :class:`.Engine` for connectivity.
lib/sqlalchemy/sql/schema.py:1553
↓ 53 callersMethodmappings
Apply a mappings filter to returned rows, returning an instance of :class:`_engine.MappingResult`. When this filter is applied, fetch
lib/sqlalchemy/engine/result.py:774
↓ 53 callersMethodparams
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:1867
↓ 53 callersMethodwarn
()
lib/sqlalchemy/orm/descriptor_props.py:972
↓ 52 callersMethod_data_obj
return Range form of the same range
test/dialect/postgresql/test_types.py:4766
↓ 52 callersMethodfetchall
(self)
lib/sqlalchemy/testing/fixtures/sql.py:478
↓ 52 callersMethodget_indexes
Return information about indexes in ``table_name``. Given a :class:`_engine.Connection`, a string ``table_name`` and an optional stri
lib/sqlalchemy/engine/interfaces.py:1619
↓ 51 callersMethodadd_cte
r"""Add one or more :class:`_sql.CTE` constructs to this statement. This method will associate the given :class:`_sql.CTE` constructs with
lib/sqlalchemy/sql/selectable.py:2607
↓ 51 callersMethoddialect_impl
Return a dialect-specific implementation for this :class:`.TypeEngine`.
lib/sqlalchemy/sql/type_api.py:930
↓ 51 callersMethodexpire_all
Expires all persistent instances within this Session. When any attributes on a persistent instance is next accessed, a query will be
lib/sqlalchemy/orm/session.py:3298
↓ 51 callersMethodget_property
return a MapperProperty associated with the given key.
lib/sqlalchemy/orm/mapper.py:2448
↓ 50 callersMethodbetween
Produce a :func:`_expression.between` clause against the parent object, given the lower and upper range.
lib/sqlalchemy/sql/operators.py:1972
↓ 50 callersMethodmax
( # noqa: A001 self, col: ColumnElement[_T], *args: _ColumnExpressionOrLi
lib/sqlalchemy/sql/functions.py:1183
↓ 50 callersMethodoperate
( self, op: OperatorType, *other: Any, **kwargs: Any )
lib/sqlalchemy/sql/operators.py:707
↓ 50 callersMethodunion_all
Produce a UNION ALL of this Query against one or more queries. Works the same way as :meth:`~sqlalchemy.orm.query.Query.union`. See t
lib/sqlalchemy/orm/query.py:2205
↓ 49 callersMethodbakery
Construct a new bakery. :return: an instance of :class:`.Bakery`
lib/sqlalchemy/ext/baked.py:66
↓ 49 callersMethodinvalidate
Close this Session, using connection invalidation. This is a variant of :meth:`.Session.close` that will additionally ensure that the
lib/sqlalchemy/orm/session.py:2650
↓ 49 callersFunctiontuple_
Return a :class:`.Tuple`. Main usage is to produce a composite IN construct using :meth:`.ColumnOperators.in_` :: from sqlalchemy im
lib/sqlalchemy/sql/_elements_constructors.py:1960
↓ 49 callersMethodunion
Produce a UNION of this Query against one or more queries. e.g.:: q1 = sess.query(SomeClass).filter(SomeClass.foo == "bar")
lib/sqlalchemy/orm/query.py:2158
↓ 48 callersMethod_fixture
(self, uselist, useobject, active_history, **kw)
test/orm/test_attributes.py:1740
↓ 48 callersMethodappend
(state, child, initiator)
test/orm/test_attributes.py:3439
↓ 48 callersMethodevent_one
(self, x, y)
test/base/test_events.py:214
↓ 48 callersMethodquery
(names)
test/orm/test_cache_key.py:881
↓ 48 callersMethodsum
Return a collection of added + unchanged + deleted.
lib/sqlalchemy/orm/attributes.py:2387
↓ 47 callersMethodadd_property
Add an individual MapperProperty to this mapper. If the mapper has not been configured yet, just adds the property to the initial pro
lib/sqlalchemy/orm/mapper.py:2371
↓ 47 callersMethodtable_valued
r"""Return a :class:`_sql.TableValuedAlias` representation of this :class:`_functions.FunctionElement` with table-valued expressions added.
lib/sqlalchemy/sql/functions.py:247
↓ 47 callersFunctionvalues
r"""Construct a :class:`_expression.Values` construct representing the SQL ``VALUES`` clause. The column expressions and the actual data for
lib/sqlalchemy/sql/_selectable_constructors.py:754
↓ 46 callersFunctionclear_mappers
Remove all mappers from all classes. .. versionchanged:: 1.4 This function now locates all :class:`_orm.registry` objects and calls upon
lib/sqlalchemy/orm/_orm_constructors.py:2336
↓ 46 callersFunctionconditional_sane_rowcount_warnings
( update=False, delete=False, only_returning=False )
test/orm/test_versioning.py:47
↓ 46 callersFunctioneq_ignore_whitespace
(a, b, msg=None)
lib/sqlalchemy/testing/assertions.py:361
↓ 46 callersMethodexecute
(self, stmt, parameters=None, **kw)
test/engine/test_reconnect.py:1040
↓ 46 callersFunctionexists
()
lib/sqlalchemy/sql/operators.py:2154
↓ 46 callersMethodnormalize_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:1855
↓ 46 callersFunctionop
(a: Any, opstring: str, b: Any)
lib/sqlalchemy/sql/operators.py:2238
↓ 46 callersMethodregister
(self, cls, canary)
test/orm/test_instrumentation.py:33
↓ 45 callersMethodconnect
(dbapi_conn, rec)
test/dialect/postgresql/test_query.py:1436
↓ 45 callersFunctiondefer
(key: _AttrType, *, raiseload: bool = False)
lib/sqlalchemy/orm/strategy_options.py:2504
↓ 45 callersMethodget
(cls)
test/ext/test_extendedattr.py:112
↓ 45 callersMethodprocess
(value)
lib/sqlalchemy/dialects/mssql/base.py:1290
↓ 45 callersMethodrefresh
(target, ctx, attrs)
test/orm/test_events.py:2741
↓ 45 callersMethodself_group
(self, against: Optional[OperatorType] = None)
lib/sqlalchemy/sql/elements.py:3578
↓ 44 callersMethodextend
(self)
test/orm/test_collection.py:701
↓ 44 callersMethodformat_table
Prepare a quoted table and schema name.
lib/sqlalchemy/sql/compiler.py:8205
↓ 43 callersMethodconnect
(self, *args, **kwargs)
lib/sqlalchemy/testing/engines.py:250
↓ 43 callersMethodcreate_connect_args
Build DB-API compatible connection arguments. Given a :class:`.URL` object, returns a tuple consisting of a ``(*args, **kwargs)`` sui
lib/sqlalchemy/engine/interfaces.py:1275
↓ 43 callersMethodcursor
()
test/engine/test_reconnect.py:925
↓ 43 callersMethodlisten
(self, *args: Any, **kw: Any)
lib/sqlalchemy/event/registry.py:285
↓ 43 callersMethodstrip
Returns a copy of the BitString with both leading and trailing characters removed. If omitted or None, ``'char'`` defaults to ``"0"``:
lib/sqlalchemy/dialects/postgresql/bitstring.py:155
↓ 42 callersMethodbindparams
Not supported for TString constructs. TString constructs do not support .bindparams(). Bind parameters are automatically created from
lib/sqlalchemy/sql/elements.py:2797
← previousnext →201–300 of 29,075, ranked by callers