MCPcopy Create free account

hub / github.com/sqlalchemy/sqlalchemy / functions

Functions28,030 in github.com/sqlalchemy/sqlalchemy

↓ 20 callersMethodiendswith
r"""Implement the ``iendswith`` operator, e.g. case insensitive version of :meth:`.ColumnOperators.endswith`. Produces a LIKE express
lib/sqlalchemy/sql/operators.py:1346
↓ 20 callersMethodistartswith
r"""Implement the ``istartswith`` operator, e.g. case insensitive version of :meth:`.ColumnOperators.startswith`. Produces a LIKE exp
lib/sqlalchemy/sql/operators.py:1168
↓ 20 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:945
↓ 20 callersFunctionopen
()
lib/sqlalchemy/testing/exclusions.py:432
↓ 20 callersFunctionregister_class
Register class instrumentation. Returns the existing or newly created class manager.
lib/sqlalchemy/orm/instrumentation.py:663
↓ 19 callersMethod_assert_collection_integrity
(self, coll)
test/base/test_utils.py:710
↓ 19 callersMethod_fixture_data
(self)
test/ext/test_horizontal_shard.py:195
↓ 19 callersMethod_one_to_many_fixture
( self, o2m_cascade=True, m2o_cascade=True, o2m=False, m2o=False,
test/orm/test_cascade.py:1144
↓ 19 callersMethod_test
(self, clause, expected, entity=None, checkparams=None)
test/orm/test_query.py:1570
↓ 19 callersMethodcoalesce
( self, col: ColumnElement[_T], *args: _ColumnExpressionOrLiteralArgument[
lib/sqlalchemy/sql/functions.py:1059
↓ 19 callersMethodcontains
(self, other, **kw)
test/sql/test_operators.py:948
↓ 19 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:1223
↓ 19 callersMethoditems
(self)
lib/sqlalchemy/ext/associationproxy.py:1735
↓ 19 callersMethodmanager_of_class
(self, cls)
lib/sqlalchemy/ext/instrumentation.py:185
↓ 19 callersMethodprocess
(value)
lib/sqlalchemy/dialects/mssql/base.py:1308
↓ 19 callersFunctionstate_str
Return a string describing an instance via its InstanceState.
lib/sqlalchemy/orm/base.py:356
↓ 19 callersMethodtime
target dialect supports representation of Python datetime.time() objects.
test/requirements.py:1438
↓ 18 callersMethod_clone
(self: _Self, **kw: Any)
lib/sqlalchemy/sql/base.py:201
↓ 18 callersMethod_fixture
(self, *arg, **kw)
test/sql/test_metadata.py:4787
↓ 18 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:222
↓ 18 callersMethodadd_class
(self, name: str, cls: Type[Any])
lib/sqlalchemy/orm/clsregistry.py:306
↓ 18 callersMethodappend
(self, item)
lib/sqlalchemy/util/_collections.py:304
↓ 18 callersFunctionawait_only
(thing)
lib/sqlalchemy/util/concurrency.py:91
↓ 18 callersMethodbind_processor
(self, dialect)
test/sql/test_types.py:3319
↓ 18 callersMethodcreate_tables
(self)
examples/versioned_history/test_versioning.py:58
↓ 18 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:542
↓ 18 callersMethodfoobar
(self)
test/orm/declarative/test_basic.py:703
↓ 18 callersMethodformat_column
Prepare a quoted column name.
lib/sqlalchemy/sql/compiler.py:8007
↓ 18 callersMethodget
(self, key, default)
lib/sqlalchemy/orm/strategies.py:1801
↓ 18 callersMethodget_isolation_level
(connection)
test/dialect/oracle/test_dialect.py:207
↓ 18 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:2094
↓ 18 callersFunctioninsert
Construct a MySQL/MariaDB-specific variant :class:`_mysql.Insert` construct. .. container:: inherited_member The :func:`sqlalchemy.d
lib/sqlalchemy/dialects/mysql/dml.py:34
↓ 18 callersMethoditerate_to_root
(self)
lib/sqlalchemy/orm/mapper.py:3395
↓ 18 callersMethodoffset
target database can render OFFSET, or an equivalent, in a SELECT.
lib/sqlalchemy/testing/requirements.py:205
↓ 18 callersMethodoperate
( self, op: OperatorType, *other: Any, result_type: Type[TypeE
lib/sqlalchemy/sql/type_api.py:189
↓ 18 callersMethodprocess
(value: Optional[Iterable[int]])
lib/sqlalchemy/dialects/mysql/types.py:445
↓ 18 callersMethodprocess
(element, compiler, **kw)
test/sql/test_labels.py:826
↓ 18 callersMethodremove
Remove the given Table object from this MetaData.
lib/sqlalchemy/sql/schema.py:5627
↓ 18 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:1762
↓ 17 callersMethod_assert_result_keys
(self, s, keys)
test/sql/test_selectable.py:3626
↓ 17 callersMethod_create_sets
(self)
test/base/test_utils.py:2046
↓ 17 callersMethod_fixture
(self, values, labels)
test/base/test_result.py:16
↓ 17 callersMethod_fixture
(self)
test/orm/test_sync.py:61
↓ 17 callersMethod_fixture
(self, cls, properties={})
test/orm/test_utils.py:159
↓ 17 callersMethod_generate_generic_binary
( self, binary: BinaryExpression[Any], opstring: str, eager_grouping: bool = F
lib/sqlalchemy/sql/compiler.py:3493
↓ 17 callersMethod_handle_dbapi_exception
( self, e: BaseException, statement: Optional[str], parameters: Optional[_AnyE
lib/sqlalchemy/engine/base.py:2235
↓ 17 callersFunction_register_attribute
(class_, key, **kw)
test/orm/test_collection.py:42
↓ 17 callersMethod_setup_stock_mapping
(cls)
test/orm/_fixtures.py:57
↓ 17 callersMethod_test
(self, expr, expected)
lib/sqlalchemy/testing/suite/test_select.py:1531
↓ 17 callersMethodbefore_create
r"""Called before CREATE statements are emitted. :param target: the :class:`.SchemaObject`, such as a :class:`_schema.MetaData` or :
lib/sqlalchemy/sql/events.py:179
↓ 17 callersMethodbulk_insert_mappings
Perform a bulk insert of the given list of mapping dictionaries. .. legacy:: This method is a legacy feature as of the 2.0 serie
lib/sqlalchemy/orm/session.py:4596
↓ 17 callersMethodclose
(self)
test/sql/test_resultset.py:3570
↓ 17 callersFunctionexpect
( role: Type[roles.TruncatedLabelRole], element: Any, **kw: Any, )
lib/sqlalchemy/sql/coercions.py:164
↓ 17 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:3591
↓ 17 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:1073
↓ 17 callersFunctionnot_
(clause: BinaryExpression[_T])
lib/sqlalchemy/sql/_elements_constructors.py:458
↓ 17 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:114
↓ 17 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:1961
↓ 17 callersMethodreplace
(elem)
test/sql/test_selectable.py:736
↓ 17 callersMethodset
(self, obj, value, oldvalue, initiator)
test/orm/test_collection.py:89
↓ 17 callersMethodupdate
(self, *iterables: Iterable[_T])
lib/sqlalchemy/util/_py_collections.py:224
↓ 17 callersFunctionwith_expression
( key: _AttrType, expression: _ColumnExpressionArgument[Any] )
lib/sqlalchemy/orm/strategy_options.py:2543
↓ 16 callersMethod_cached_bind_processor
Return a dialect-specific bind processor for this type.
lib/sqlalchemy/sql/type_api.py:918
↓ 16 callersMethod_deannotate
( self, values: Literal[None] = ..., clone: bool = ..., )
lib/sqlalchemy/sql/annotation.py:310
↓ 16 callersMethod_eagerload_mappings
(self, addresses_lazy=True, user_lazy=True)
test/orm/test_query.py:5231
↓ 16 callersMethod_execute_reflection
( self, connection, query, dblink, returns_long, params=None )
lib/sqlalchemy/dialects/oracle/base.py:2114
↓ 16 callersMethod_fixture
(self)
test/base/test_events.py:1273
↓ 16 callersMethod_fixture
( self, legacy_is_orphan, persistent, r1_present, r2_present,
test/orm/test_cascade.py:3656
↓ 16 callersMethod_fixture
(self, include_address=False)
test/orm/test_events.py:3299
↓ 16 callersMethod_fixture
(self)
test/orm/test_composites.py:109
↓ 16 callersMethod_get_strategy
(self, key: _StrategyKey)
lib/sqlalchemy/orm/interfaces.py:1053
↓ 16 callersMethod_reset_memoizations
(self)
lib/sqlalchemy/util/langhelpers.py:1197
↓ 16 callersMethod_test_adapter
(self, typecallable, creator=None, to_set=None)
test/orm/test_collection.py:149
↓ 16 callersMethodadd
(self, element: _T)
lib/sqlalchemy/util/_py_collections.py:179
↓ 16 callersFunctionany_
Produce an ANY expression. For dialects such as that of PostgreSQL, this operator applies to usage of the :class:`_types.ARRAY` datatype, for
lib/sqlalchemy/sql/_elements_constructors.py:252
↓ 16 callersMethodassert_statement_count
(self, db, count)
lib/sqlalchemy/testing/assertions.py:946
↓ 16 callersMethodbulk_save_objects
Perform a bulk save of the given list of objects. .. legacy:: This method is a legacy feature as of the 2.0 series of
lib/sqlalchemy/orm/session.py:4491
↓ 16 callersMethodclear
(self)
test/perf/compiled_extensions.py:544
↓ 16 callersMethodclear_cache
reset the cache for this :class:`.Inspector`. Inspection methods that have data cached will emit SQL queries when next called to get
lib/sqlalchemy/engine/reflection.py:270
↓ 16 callersMethodcollate
Produce a :func:`_expression.collate` clause against the parent object, given the collation string. .. seealso:: :func:`
lib/sqlalchemy/sql/operators.py:1785
↓ 16 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:93
↓ 16 callersFunctioncreate_async_engine
Create a new async engine instance. Arguments passed to :func:`_asyncio.create_async_engine` are mostly identical to those passed to the :fun
lib/sqlalchemy/ext/asyncio/engine.py:70
↓ 16 callersMethoddenormalize_schema_name
(self, name)
lib/sqlalchemy/dialects/oracle/base.py:2215
↓ 16 callersMethoddo_rollback
(self, dbapi_connection)
test/engine/test_pool.py:393
↓ 16 callersFunctionfixture
(**kw)
lib/sqlalchemy/testing/util.py:334
↓ 16 callersMethodget_pk_constraint
Return information about the primary key constraint on table_name`. Given a :class:`_engine.Connection`, a string ``table_nam
lib/sqlalchemy/engine/interfaces.py:1378
↓ 16 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:1771
↓ 16 callersMethodinfo
A user-modifiable dictionary. The initial value of this dictionary can be populated using the ``info`` argument to the :class:`.Sessi
lib/sqlalchemy/orm/session.py:1865
↓ 16 callersMethodinstance
( cls, statement: Optional[str], params: Optional[_AnyExecuteParams], orig: Ex
lib/sqlalchemy/exc.py:567
↓ 16 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
↓ 16 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:211
↓ 16 callersMethodremove
(self, obj)
test/ext/test_associationproxy.py:64
↓ 16 callersMethodsql_eq_
(self, callable_, statements)
lib/sqlalchemy/testing/fixtures/sql.py:186
↓ 16 callersMethodtable
(self)
lib/sqlalchemy/sql/schema.py:4175
↓ 16 callersMethodwithin_group
Produce a WITHIN GROUP (ORDER BY expr) clause against this function.
lib/sqlalchemy/sql/elements.py:4568
↓ 15 callersMethod_assert_fk
(self, t2, schema, expected, referred_schema_fn=None)
test/sql/test_metadata.py:1376
↓ 15 callersMethod_mock_create_fixture
( self, checkfirst, tables, item_exists=lambda item: False )
test/sql/test_ddlemit.py:36
↓ 15 callersMethod_test
(self, connection, expr, field="all", overrides=None)
test/dialect/postgresql/test_query.py:1401
↓ 15 callersMethodas_mutable
Associate a SQL type with this mutable Python type. This establishes listeners that will detect ORM mappings against the given type,
lib/sqlalchemy/ext/mutable.py:660
↓ 15 callersMethodcreate
Create a new :class:`_engine.URL` object. .. seealso:: :ref:`database_urls` :param drivername: the name of the database
lib/sqlalchemy/engine/url.py:153
← previousnext →401–500 of 28,030, ranked by callers