MCPcopy Create free account

hub / github.com/sqlalchemy/sqlalchemy / functions

Functions29,075 in github.com/sqlalchemy/sqlalchemy

↓ 27 callersMethod_assert_result
(self, select, result, params=None)
lib/sqlalchemy/testing/suite/test_select.py:1132
↓ 27 callersMethod_data_str
return string form of a sample range
test/dialect/postgresql/test_types.py:4762
↓ 27 callersMethod_queuepool_fixture
(self, **kw)
test/engine/test_pool.py:87
↓ 27 callersMethodissuperset
(self)
test/perf/compiled_extensions/collections_.py:306
↓ 27 callersFunctionlambda_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 callersMethodnot_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 callersMethodoffset
target database can render OFFSET, or an equivalent, in a SELECT.
lib/sqlalchemy/testing/requirements.py:217
↓ 27 callersFunctiononly_if
(predicate, reason=None)
lib/sqlalchemy/testing/exclusions.py:197
↓ 27 callersMethodprefix_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 callersMethodstream
( self, statement: TypedReturnsRows[Unpack[_Ts]], params: Optional[_CoreAnyExecutePara
lib/sqlalchemy/ext/asyncio/session.py:657
↓ 27 callersMethodunion
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 callersFunctionwith_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 callersMethod_assert_bind_args
(self, session, expect_mapped_bind=True)
test/orm/test_query.py:7096
↓ 26 callersMethodadd
(self, *others)
lib/sqlalchemy/testing/exclusions.py:56
↓ 26 callersMethodcontains_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 callersFunctionexpect
( role: Type[roles.TruncatedLabelRole], element: Any, **kw: Any, )
lib/sqlalchemy/sql/coercions.py:165
↓ 26 callersMethodformat_column
Prepare a quoted column name.
lib/sqlalchemy/sql/compiler.py:8244
↓ 26 callersMethodget_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 callersMethodget_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 callersMethodinline
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 callersMethodon_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 callersMethodshutdown
(self, stop=False)
lib/sqlalchemy/testing/engines.py:269
↓ 26 callersMethodstart
(self, is_ctxmanager: bool = False)
lib/sqlalchemy/ext/asyncio/base.py:114
↓ 25 callersMethod_cached_bind_processor
Return a dialect-specific bind processor for this type.
lib/sqlalchemy/sql/type_api.py:973
↓ 25 callersMethod_option_fixture
(self, *arg)
test/orm/test_options.py:414
↓ 25 callersMethod_test_clause
(self, colclause, expected, type_)
test/dialect/postgresql/test_types.py:5853
↓ 25 callersMethodcoalesce
( self, col: ColumnElement[_T], *args: _ColumnExpressionOrLiteralArgument[
lib/sqlalchemy/sql/functions.py:1108
↓ 25 callersMethodcollate
Produce a :func:`_expression.collate` clause against the parent object, given the collation string. .. seealso:: :func:`
lib/sqlalchemy/sql/operators.py:1929
↓ 25 callersFunctionfalse
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 callersMethodget
(self, key, default)
lib/sqlalchemy/orm/strategies.py:1814
↓ 25 callersMethodget_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 callersMethodilike
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 callersMethodis_
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 callersMethodis_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 callersFunctionis_none
(a, msg=None)
lib/sqlalchemy/testing/assertions.py:309
↓ 25 callersFunctionload_only
(*attrs: _AttrType, raiseload: bool = False)
lib/sqlalchemy/orm/strategy_options.py:2442
↓ 25 callersFunctionmake_option
(name, **kw)
lib/sqlalchemy/testing/plugin/pytestplugin.py:37
↓ 25 callersMethodprocess
(value)
lib/sqlalchemy/dialects/oracle/vector.py:300
↓ 25 callersFunctionregister_class
Register class instrumentation. Returns the existing or newly created class manager.
lib/sqlalchemy/orm/instrumentation.py:655
↓ 25 callersMethodremove
Remove the given Table object from this MetaData.
lib/sqlalchemy/sql/schema.py:6027
↓ 25 callersMethodtable
(self)
lib/sqlalchemy/sql/schema.py:4555
↓ 24 callersMethod_divide_results
utility method to create ratios of two implementation
test/perf/compiled_extensions/base.py:60
↓ 24 callersMethod_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 callersMethod_refresh_for_new_column
(self, column: ColumnElement[Any])
lib/sqlalchemy/sql/selectable.py:1440
↓ 24 callersFunctioncolspec
(c)
test/dialect/mysql/test_types.py:1432
↓ 24 callersMethodinstance
( cls, statement: Optional[str], params: Optional[_AnyExecuteParams], orig: Ex
lib/sqlalchemy/exc.py:619
↓ 24 callersMethodlength
(self)
test/typing/plain_files/ext/hybrid/hybrid_two.py:34
↓ 24 callersMethodnulls_first
(self)
lib/sqlalchemy/sql/elements.py:2998
↓ 24 callersFunctionremote
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 callersMethodremove
(self, obj)
test/ext/test_associationproxy.py:66
↓ 24 callersMethodrender_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 callersFunctionMockDBAPI
()
test/engine/test_pool.py:42
↓ 23 callersMethod_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 callersMethod_extend_numeric
Extend a numeric-type declaration with MySQL specific extensions.
lib/sqlalchemy/dialects/mysql/base.py:2388
↓ 23 callersMethodassertRows
Execute a statement and assert that rows returned equal expected.
test/sql/test_query.py:1458
↓ 23 callersMethoddo_rollback
(self, dbapi_connection)
test/engine/test_pool.py:391
↓ 23 callersFunctionfixture
(**kw)
lib/sqlalchemy/testing/util.py:293
↓ 23 callersMethodget
(self, key)
examples/dogpile_caching/local_session_caching.py:43
↓ 23 callersMethodhaving
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 callersMethodicontains
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 callersMethodintersection
(self)
test/perf/compiled_extensions/collections_.py:370
↓ 23 callersMethodmanager_of_class
(self, cls)
lib/sqlalchemy/ext/instrumentation.py:185
↓ 23 callersMethodupdate_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 callersMethodwithin_group
Produce a WITHIN GROUP (ORDER BY expr) clause against this function.
lib/sqlalchemy/sql/elements.py:4995
↓ 22 callersMethod_assert_collection_integrity
(self, coll)
test/base/test_utils.py:805
↓ 22 callersMethod_clear
(cls)
lib/sqlalchemy/event/base.py:424
↓ 22 callersMethod_test
(self, string, expected)
test/base/test_utils.py:3494
↓ 22 callersMethodadapt
(self, cls, **kw)
lib/sqlalchemy/sql/sqltypes.py:1909
↓ 22 callersFunctioncompare_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 callersMethodconnection
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 callersMethodcursor
(self)
lib/sqlalchemy/dialects/oracle/oracledb.py:829
↓ 22 callersFunctiondeclare
(t: Type[_T], value: Any = None, **kw: Any)
lib/sqlalchemy/util/cython.py:50
↓ 22 callersMethodfetchmany
(self, size=None)
test/perf/compiled_extensions/result.py:370
↓ 22 callersMethodget
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 callersMethodget
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 callersMethodget_bind
(self, **kw)
test/orm/test_bind.py:441
↓ 22 callersMethodlazyload
(state, passive)
test/orm/test_attributes.py:2902
↓ 22 callersMethodlisten
(target_cls: type, *arg: Any)
lib/sqlalchemy/orm/events.py:131
↓ 22 callersMethodregister_object
( self, state: InstanceState[Any], isdelete: bool = False, listonly: bool = Fa
lib/sqlalchemy/orm/unitofwork.py:307
↓ 22 callersMethodset
(self, obj, value, oldvalue, initiator)
test/orm/test_collection.py:90
↓ 21 callersMethod_anonymous_fromclause
( self, name: Optional[str] = None, flat: bool = False )
lib/sqlalchemy/sql/selectable.py:1658
↓ 21 callersMethod_assert_fk
(self, t2, schema, expected, referred_schema_fn=None)
test/sql/test_metadata.py:1311
↓ 21 callersMethod_fixture
(self, naming_convention, table_schema=None)
test/sql/test_metadata.py:5771
↓ 21 callersMethod_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 callersMethodassert_statement_count
(self, db, count)
lib/sqlalchemy/testing/assertions.py:959
↓ 21 callersMethodcombinations
()
test/sql/test_update.py:882
↓ 21 callersMethoddifference
(self)
test/perf/compiled_extensions/collections_.py:347
↓ 21 callersMethodexists
(name)
test/sql/test_ddlemit.py:182
↓ 21 callersFunctionfails_if
(predicate, reason=None)
lib/sqlalchemy/testing/exclusions.py:27
↓ 21 callersFunctionfrom_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 callersMethodget_nested_transaction
Return the current nested transaction in progress, if any. .. versionadded:: 1.4
lib/sqlalchemy/orm/session.py:1896
↓ 21 callersMethodload_tracker
(self, cls, canary=None)
test/orm/test_merge.py:46
↓ 21 callersMethodrender_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 callersMethodschema_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 callersMethodvalues
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 callersMethod_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 callersMethod_dialect
(self, native_boolean)
test/sql/test_operators.py:1455
↓ 20 callersMethod_generate_generic_binary
( self, binary: BinaryExpression[Any], opstring: str, eager_grouping: bool = F
lib/sqlalchemy/sql/compiler.py:3662
↓ 20 callersMethod_test
(self, expr, expected)
lib/sqlalchemy/testing/suite/test_select.py:1537
↓ 20 callersMethod_two_obj_fixture
(self, uselist, active_history=False)
test/orm/test_attributes.py:1755
← previousnext →401–500 of 29,075, ranked by callers