sqlalchemy API reference
400 public APIs from sqlalchemy (sqlalchemy/sqlalchemy) — 196 classes, 25 functions, 179 methods. Signatures extracted by static analysis of the actual source.
Repository: sqlalchemy/sqlalchemy
| Kind | Count |
|---|---|
| Classes | 196 |
| Functions | 25 |
| Methods | 179 |
API list
class
lib.sqlalchemy.dialects.mssql.base.BITMSSQL BIT type.
class
lib.sqlalchemy.dialects.mssql.base.DOUBLE_PRECISIONthe SQL Server DOUBLE PRECISION datatype.
class
lib.sqlalchemy.dialects.mssql.base.REALthe SQL Server REAL datatype.
class
lib.sqlalchemy.dialects.mssql.base.ROWVERSIONImplement the SQL Server ROWVERSION type.
class
lib.sqlalchemy.dialects.mssql.base.TIMESTAMPImplement the SQL Server TIMESTAMP type.
class
lib.sqlalchemy.dialects.mssql.base.VARBINARYThe MSSQL VARBINARY type.
class
lib.sqlalchemy.dialects.mssql.base.XMLMSSQL XML type.
class
lib.sqlalchemy.dialects.mssql.json.JSONMSSQL JSON type.
class
lib.sqlalchemy.dialects.mysql.base.MySQLDialectDetails of the MySQL dialect.
class
lib.sqlalchemy.dialects.mysql.dml.InsertMySQL-specific implementation of INSERT.
method
lib.sqlalchemy.dialects.mysql.dml.Insert.on_duplicate_key_update(*args:_UpdateArg, **kw:Any) -> SelfSpecifies the ON DUPLICATE KEY UPDATE clause.
class
lib.sqlalchemy.dialects.mysql.enumerated.ENUMMySQL ENUM type.
class
lib.sqlalchemy.dialects.mysql.enumerated.SETMySQL SET type.
class
lib.sqlalchemy.dialects.mysql.expression.matchProduce a ``MATCH (X, Y) AGAINST ('TEXT')`` clause.
class
lib.sqlalchemy.dialects.mysql.json.JSONMySQL JSON type.
class
lib.sqlalchemy.dialects.mysql.mariadb.INET4INET4 column type for MariaDB ..
class
lib.sqlalchemy.dialects.mysql.mariadb.INET6INET6 column type for MariaDB ..
class
lib.sqlalchemy.dialects.mysql.types.BIGINTMySQL BIGINTEGER type.
class
lib.sqlalchemy.dialects.mysql.types.BITMySQL BIT type.
class
lib.sqlalchemy.dialects.mysql.types.CHARMySQL CHAR type, for fixed-length character data.
class
lib.sqlalchemy.dialects.mysql.types.DATETIMEMySQL DATETIME type.
class
lib.sqlalchemy.dialects.mysql.types.DECIMALMySQL DECIMAL type.
class
lib.sqlalchemy.dialects.mysql.types.DOUBLEMySQL DOUBLE type.
class
lib.sqlalchemy.dialects.mysql.types.FLOATMySQL FLOAT type.
class
lib.sqlalchemy.dialects.mysql.types.INTEGERMySQL INTEGER type.
class
lib.sqlalchemy.dialects.mysql.types.LONGBLOBMySQL LONGBLOB type, for binary data up to 2^32 bytes.
class
lib.sqlalchemy.dialects.mysql.types.MEDIUMINTMySQL MEDIUMINTEGER type.
class
lib.sqlalchemy.dialects.mysql.types.NCHARMySQL NCHAR type.
class
lib.sqlalchemy.dialects.mysql.types.NUMERICMySQL NUMERIC type.
class
lib.sqlalchemy.dialects.mysql.types.NVARCHARMySQL NVARCHAR type.
class
lib.sqlalchemy.dialects.mysql.types.REALMySQL REAL type.
class
lib.sqlalchemy.dialects.mysql.types.SMALLINTMySQL SMALLINTEGER type.
class
lib.sqlalchemy.dialects.mysql.types.TIMEMySQL TIME type.
class
lib.sqlalchemy.dialects.mysql.types.TIMESTAMPMySQL TIMESTAMP type.
class
lib.sqlalchemy.dialects.mysql.types.TINYBLOBMySQL TINYBLOB type, for binary data up to 2^8 bytes.
class
lib.sqlalchemy.dialects.mysql.types.TINYINTMySQL TINYINT type.
class
lib.sqlalchemy.dialects.mysql.types.VARCHARMySQL VARCHAR type, for variable-length character data.
class
lib.sqlalchemy.dialects.oracle.json.JSONOracle JSON type.
class
lib.sqlalchemy.dialects.oracle.types.BINARY_DOUBLEImplement the Oracle ``BINARY_DOUBLE`` datatype.
class
lib.sqlalchemy.dialects.oracle.types.BINARY_FLOATImplement the Oracle ``BINARY_FLOAT`` datatype.
class
lib.sqlalchemy.dialects.oracle.types.DATEProvide the Oracle Database DATE type.
class
lib.sqlalchemy.dialects.oracle.types.FLOATOracle Database FLOAT.
class
lib.sqlalchemy.dialects.oracle.types.ROWIDOracle Database ROWID type.
class
lib.sqlalchemy.dialects.oracle.vector.SparseVectorLightweight SQLAlchemy-side version of SparseVector.
class
lib.sqlalchemy.dialects.oracle.vector.VECTOROracle VECTOR datatype.
class
lib.sqlalchemy.dialects.oracle.vector.VectorIndexConfigDefine the configuration for Oracle VECTOR Index.
class
lib.sqlalchemy.dialects.postgresql.array.ARRAYPostgreSQL ARRAY type.
method
lib.sqlalchemy.dialects.postgresql.array.ARRAY.Comparator.contained_by(other:typing_Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.array.ARRAY.Comparator.contains(other:typing_Any, **kwargs:typing_Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.array.ARRAY.Comparator.overlap(other:typing_Any) -> ColumnElement[bool]Boolean expression.
class
lib.sqlalchemy.dialects.postgresql.array.arrayA PostgreSQL ARRAY literal.
class
lib.sqlalchemy.dialects.postgresql.base.ReflectedDomainRepresents a reflected enum.
class
lib.sqlalchemy.dialects.postgresql.base.ReflectedEnumRepresents a reflected enum.
class
lib.sqlalchemy.dialects.postgresql.base.ReflectedNamedTypeRepresents a reflected named type.
class
lib.sqlalchemy.dialects.postgresql.bitstring.BitStringRepresent a PostgreSQL bit string in python.
method
lib.sqlalchemy.dialects.postgresql.bitstring.BitString.set_bit(index:int, value:bool | int | Literal['0', '1']) -> BitStringSet the bit at index to the given value.
class
lib.sqlalchemy.dialects.postgresql.dml.InsertPostgreSQL-specific implementation of INSERT.
class
lib.sqlalchemy.dialects.postgresql.ext.ExcludeConstraintA table-level EXCLUDE constraint.
class
lib.sqlalchemy.dialects.postgresql.ext.phraseto_tsqueryThe PostgreSQL ``phraseto_tsquery`` SQL function.
class
lib.sqlalchemy.dialects.postgresql.ext.plainto_tsqueryThe PostgreSQL ``plainto_tsquery`` SQL function.
class
lib.sqlalchemy.dialects.postgresql.ext.to_tsqueryThe PostgreSQL ``to_tsquery`` SQL function.
class
lib.sqlalchemy.dialects.postgresql.ext.to_tsvectorThe PostgreSQL ``to_tsvector`` SQL function.
class
lib.sqlalchemy.dialects.postgresql.ext.ts_headlineThe PostgreSQL ``ts_headline`` SQL function.
class
lib.sqlalchemy.dialects.postgresql.hstore.HSTORERepresent the PostgreSQL HSTORE type.
class
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.ComparatorDefine comparison operations for :class:`.HSTORE`.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.array() -> AnyText array expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.contained_by(other:Any) -> AnyBoolean expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.contains(other:Any, **kwargs:Any) -> AnyBoolean expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.defined(key:Any) -> AnyBoolean expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.delete(key:Any) -> AnyHStore expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.has_all(other:Any) -> AnyBoolean expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.has_any(other:Any) -> AnyBoolean expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.has_key(other:Any) -> AnyBoolean expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.keys() -> AnyText array expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.matrix() -> AnyText array expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.slice(array:Any) -> AnyHStore expression.
method
lib.sqlalchemy.dialects.postgresql.hstore.HSTORE.Comparator.vals() -> AnyText array expression.
class
lib.sqlalchemy.dialects.postgresql.json.JSONRepresent the PostgreSQL JSON type.
class
lib.sqlalchemy.dialects.postgresql.json.JSONBRepresent the PostgreSQL JSONB type.
method
lib.sqlalchemy.dialects.postgresql.json.JSONB.Comparator.contained_by(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.json.JSONB.Comparator.contains(other:Any, **kwargs:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.json.JSONB.Comparator.delete_path(array:Union[List[str], _pg_array[str]]) -> ColumnElement[_CT_JSON]JSONB expression.
method
lib.sqlalchemy.dialects.postgresql.json.JSONB.Comparator.has_all(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.json.JSONB.Comparator.has_any(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.json.JSONB.Comparator.has_key(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.json.JSONB.Comparator.path_exists(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.json.JSONB.Comparator.path_match(other:Any) -> ColumnElement[bool]Boolean expression.
class
lib.sqlalchemy.dialects.postgresql.json.JSONPATHJSON Path Type.
class
lib.sqlalchemy.dialects.postgresql.named_types.CreateDomainTypeRepresent a CREATE DOMAIN statement.
class
lib.sqlalchemy.dialects.postgresql.named_types.DOMAINRepresent the DOMAIN PostgreSQL type.
class
lib.sqlalchemy.dialects.postgresql.named_types.DropDomainTypeRepresent a DROP DOMAIN statement.
class
lib.sqlalchemy.dialects.postgresql.named_types.ENUMPostgreSQL ENUM type.
method
lib.sqlalchemy.dialects.postgresql.named_types.ENUM.drop(bind:_CreateDropBind, checkfirst:bool=True) -> NoneEmit ``DROP TYPE`` for this :class:`_postgresql.ENUM`.
class
lib.sqlalchemy.dialects.postgresql.named_types.NamedTypeBase for named types.
method
lib.sqlalchemy.dialects.postgresql.named_types.NamedType.create(bind:_CreateDropBind, checkfirst:bool=True, **kw:Any) -> NoneEmit ``CREATE`` DDL for this type.
method
lib.sqlalchemy.dialects.postgresql.named_types.NamedType.drop(bind:_CreateDropBind, checkfirst:bool=True, **kw:Any) -> NoneEmit ``DROP`` DDL for this type.
class
lib.sqlalchemy.dialects.postgresql.ranges.AbstractMultiRangeBase for PostgreSQL MULTIRANGE types.
class
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRangeBase class for single and multi Range SQL types.
class
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factoryDefine comparison operations for range types.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.adjacent_to(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.contained_by(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.contains(other:Any, **kw:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.difference(other:Any) -> ColumnElement[bool]Range expression.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.intersection(other:Any) -> ColumnElement[Range[_T]]Range expression.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.not_extend_left_of(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.not_extend_right_of(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.overlaps(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.strictly_left_of(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.strictly_right_of(other:Any) -> ColumnElement[bool]Boolean expression.
method
lib.sqlalchemy.dialects.postgresql.ranges.AbstractRange.comparator_factory.union(other:Any) -> ColumnElement[bool]Range expression.
class
lib.sqlalchemy.dialects.postgresql.ranges.AbstractSingleRangeBase for PostgreSQL RANGE types.
class
lib.sqlalchemy.dialects.postgresql.ranges.DATEMULTIRANGERepresent the PostgreSQL DATEMULTIRANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.DATERANGERepresent the PostgreSQL DATERANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.INT4MULTIRANGERepresent the PostgreSQL INT4MULTIRANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.INT4RANGERepresent the PostgreSQL INT4RANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.INT8MULTIRANGERepresent the PostgreSQL INT8MULTIRANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.INT8RANGERepresent the PostgreSQL INT8RANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.MultiRangeRepresents a multirange sequence.
class
lib.sqlalchemy.dialects.postgresql.ranges.NUMMULTIRANGERepresent the PostgreSQL NUMMULTIRANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.NUMRANGERepresent the PostgreSQL NUMRANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.RangeRepresent a PostgreSQL range.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.adjacent_to(other:Range[_T]) -> boolDetermine whether this range is adjacent to the `other`.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.contained_by(other:Range[_T]) -> boolDetermine whether this range is a contained by `other`.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.contains(value:Union[_T, Range[_T]]) -> boolDetermine whether this range contains `value`.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.difference(other:Range[_T]) -> Range[_T]Compute the difference between this range and the `other`.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.intersection(other:Range[_T]) -> Range[_T]Compute the intersection of this range with the `other`.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.is_empty() -> boolA synonym for the 'empty' attribute.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.isempty() -> boolA synonym for the 'empty' attribute.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.lower_inc() -> boolReturn True if the lower bound is inclusive.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.overlaps(other:Range[_T]) -> boolDetermine whether this range overlaps with `other`.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.union(other:Range[_T]) -> Range[_T]Compute the union of this range with the `other`.
method
lib.sqlalchemy.dialects.postgresql.ranges.Range.upper_inc() -> boolReturn True if the upper bound is inclusive.
class
lib.sqlalchemy.dialects.postgresql.ranges.TSMULTIRANGERepresent the PostgreSQL TSRANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.TSRANGERepresent the PostgreSQL TSRANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.TSTZMULTIRANGERepresent the PostgreSQL TSTZRANGE type.
class
lib.sqlalchemy.dialects.postgresql.ranges.TSTZRANGERepresent the PostgreSQL TSTZRANGE type.
class
lib.sqlalchemy.dialects.postgresql.types.BITRepresent the PostgreSQL BIT type.
class
lib.sqlalchemy.dialects.postgresql.types.CITEXTProvide the PostgreSQL CITEXT type.
class
lib.sqlalchemy.dialects.postgresql.types.INTERVALPostgreSQL INTERVAL type.
class
lib.sqlalchemy.dialects.postgresql.types.MONEYProvide the PostgreSQL MONEY type.
class
lib.sqlalchemy.dialects.postgresql.types.OIDProvide the PostgreSQL OID type.
class
lib.sqlalchemy.dialects.postgresql.types.REGCLASSProvide the PostgreSQL REGCLASS type.
class
lib.sqlalchemy.dialects.postgresql.types.REGCONFIGProvide the PostgreSQL REGCONFIG type.
class
lib.sqlalchemy.dialects.postgresql.types.TIMEPostgreSQL TIME type.
class
lib.sqlalchemy.dialects.postgresql.types.TIMESTAMPProvide the PostgreSQL TIMESTAMP type.
class
lib.sqlalchemy.dialects.postgresql.types.TSQUERYProvide the PostgreSQL TSQUERY type.
class
lib.sqlalchemy.dialects.sqlite.base.DATERepresent a Python date object in SQLite using a string.
class
lib.sqlalchemy.dialects.sqlite.base.TIMERepresent a Python time object in SQLite using a string.
class
lib.sqlalchemy.dialects.sqlite.dml.InsertSQLite-specific implementation of INSERT.
class
lib.sqlalchemy.dialects.sqlite.json.JSONSQLite JSON type.
class
lib.sqlalchemy.dialects.sqlite.json.JSONBSQLite JSONB type.
method
lib.sqlalchemy.engine.base.Connection.begin() -> RootTransactionBegin a transaction prior to autobegin occurring.
method
lib.sqlalchemy.engine.base.Connection.begin_nested() -> NestedTransactionBegin a nested transaction (i.e.
method
lib.sqlalchemy.engine.base.Connection.close() -> NoneClose this :class:`_engine.Connection`.
method
lib.sqlalchemy.engine.base.Connection.closed() -> boolReturn True if this connection is closed.
method
lib.sqlalchemy.engine.base.Connection.commit() -> NoneCommit the transaction that is currently in progress.
method
lib.sqlalchemy.engine.base.Connection.in_nested_transaction() -> boolReturn True if a transaction is in progress.
method
lib.sqlalchemy.engine.base.Connection.in_transaction() -> boolReturn True if a transaction is in progress.
method
lib.sqlalchemy.engine.base.Connection.invalidated() -> boolReturn True if this connection was invalidated.
method
lib.sqlalchemy.engine.base.Engine.connect() -> ConnectionReturn a new :class:`_engine.Connection` object.
method
lib.sqlalchemy.engine.base.Engine.engine() -> EngineReturns this :class:`.Engine`.
class
lib.sqlalchemy.engine.base.ExceptionContextImplImplement the :class:`.ExceptionContext` interface.
class
lib.sqlalchemy.engine.base.NestedTransactionRepresent a 'nested', or SAVEPOINT transaction.
class
lib.sqlalchemy.engine.base.TransactionRepresent a database transaction in progress.
method
lib.sqlalchemy.engine.base.Transaction.close() -> NoneClose this :class:`.Transaction`.
method
lib.sqlalchemy.engine.base.Transaction.commit() -> NoneCommit this :class:`.Transaction`.
method
lib.sqlalchemy.engine.base.Transaction.rollback() -> NoneRoll back this :class:`.Transaction`.
class
lib.sqlalchemy.engine.base.TwoPhaseTransactionRepresent a two-phase transaction.
method
lib.sqlalchemy.engine.base.TwoPhaseTransaction.prepare() -> NonePrepare this :class:`.TwoPhaseTransaction`.
class
lib.sqlalchemy.engine.characteristics.IsolationLevelCharacteristicManage the isolation level on a DBAPI connection
class
lib.sqlalchemy.engine.cursor.BufferedRowCursorFetchStrategyA cursor fetch strategy with row buffering behavior.
class
lib.sqlalchemy.engine.cursor.CursorFetchStrategyCall fetch methods from a DBAPI cursor.
class
lib.sqlalchemy.engine.cursor.CursorResultA Result that is representing state from a DBAPI cursor.
method
lib.sqlalchemy.engine.cursor.CursorResult.close() -> NoneClose this :class:`_engine.CursorResult`.
method
lib.sqlalchemy.engine.cursor.CursorResult.lastrowid() -> intReturn the 'lastrowid' accessor on the DBAPI cursor.
method
lib.sqlalchemy.engine.cursor.CursorResult.rowcount() -> intReturn the 'rowcount' for this result.
class
lib.sqlalchemy.engine.cursor.CursorResultMetaDataResult metadata for DBAPI cursors.
class
lib.sqlalchemy.engine.cursor.NoCursorFetchStrategyCursor strategy for a result that has no open cursor.
class
lib.sqlalchemy.engine.cursor.ResultFetchStrategyDefine a fetching strategy for a result object.
class
lib.sqlalchemy.engine.default.DefaultDialectDefault implementation of Dialect
class
lib.sqlalchemy.engine.events.DialectEventsevent interface for execution-replacement functions.
class
lib.sqlalchemy.engine.interfaces.DBAPICursorprotocol representing a :pep:`249` database cursor.
method
lib.sqlalchemy.engine.interfaces.DBAPICursor.description() -> _DBAPICursorDescriptionThe description attribute of the Cursor.
class
lib.sqlalchemy.engine.interfaces.DBAPITypeprotocol representing a :pep:`249` database type.
method
lib.sqlalchemy.engine.interfaces.Dialect.connect(*cargs:Any, **cparams:Any) -> DBAPIConnectionEstablish a connection using this dialect's DBAPI.
method
lib.sqlalchemy.engine.interfaces.Dialect.create_connect_args(url:URL) -> ConnectArgsTypeBuild DB-API compatible connection arguments.
method
lib.sqlalchemy.engine.interfaces.Dialect.create_xid() -> AnyCreate a two-phase transaction ID.
method
lib.sqlalchemy.engine.interfaces.Dialect.dbapi_version() -> util.VersionInfothe version number of the DBAPI in use.
method
lib.sqlalchemy.engine.interfaces.Dialect.do_begin_twophase(connection:Connection, xid:Any) -> NoneBegin a two phase transaction on the given connection.
method
lib.sqlalchemy.engine.interfaces.Dialect.do_release_savepoint(connection:Connection, name:str) -> NoneRelease the named savepoint on a connection.
method
lib.sqlalchemy.engine.interfaces.Dialect.do_rollback_to_savepoint(connection:Connection, name:str) -> NoneRollback a connection to the named savepoint.
method
lib.sqlalchemy.engine.interfaces.Dialect.do_savepoint(connection:Connection, name:str) -> NoneCreate a savepoint with the given name.
method
lib.sqlalchemy.engine.interfaces.Dialect.get_dialect_pool_class(url:URL) -> Type[Pool]return a Pool class to use for a given URL
method
lib.sqlalchemy.engine.interfaces.Dialect.get_table_names(connection:Connection, schema:Optional[str]=None, **kw:Any) -> List[str]Return a list of table names for ``schema``.
method
lib.sqlalchemy.engine.interfaces.Dialect.get_view_definition(connection:Connection, view_name:str, schema:Optional[str]=None, **kw:Any) -> strReturn plain or materialized view definition.
method
lib.sqlalchemy.engine.interfaces.Dialect.load_provisioning() -> Noneset up the provision.py module for this dialect.
method
lib.sqlalchemy.engine.interfaces.Dialect.retrieve_dbapi_version(dbapi:DBAPIModule) -> util.VersionInfoReturn the version of the given DBAPI module.
method
lib.sqlalchemy.engine.interfaces.Dialect.set_engine_execution_options(engine:Engine, opts:CoreExecuteOptionsParameter) -> NoneEstablish execution options for a given engine.
method
lib.sqlalchemy.engine.interfaces.Dialect.type_descriptor(typeobj:TypeEngine[_T]) -> TypeEngine[_T]Transform a generic type to a dialect-specific type.
func
lib.sqlalchemy.engine.mock.create_mock_engine(url:Union[str, URL], executor:Any, **kw:Any) -> MockConnectionCreate a "mock" engine used for echoing DDL.
class
lib.sqlalchemy.engine.reflection.InspectorPerforms database schema inspection.
method
lib.sqlalchemy.engine.reflection.Inspector.clear_cache() -> NoneReset the cache for this :class:`.Inspector`.
method
lib.sqlalchemy.engine.reflection.Inspector.get_materialized_view_names(schema:Optional[str]=None, **kw:Any) -> List[str]Return all materialized view names in `schema`.
method
lib.sqlalchemy.engine.reflection.Inspector.get_schema_names(**kw:Any) -> List[str]Return all schema names.
method
lib.sqlalchemy.engine.reflection.Inspector.get_sequence_names(schema:Optional[str]=None, **kw:Any) -> List[str]Return all sequence names in `schema`.
method
lib.sqlalchemy.engine.reflection.Inspector.get_table_names(schema:Optional[str]=None, **kw:Any) -> List[str]Return all table names within a particular schema.
method
lib.sqlalchemy.engine.reflection.Inspector.get_view_names(schema:Optional[str]=None, **kw:Any) -> List[str]Return all non-materialized view names in `schema`.
class
lib.sqlalchemy.engine.reflection.ReflectionDefaultsprovides blank default values for reflection methods.
class
lib.sqlalchemy.engine.result.ResultRepresent a set of database results.
method
lib.sqlalchemy.engine.result.Result.all() -> Sequence[Row[Unpack[_Ts]]]Return all rows in a sequence.
method
lib.sqlalchemy.engine.result.Result.close() -> NoneHard close this :class:`_engine.Result`.
method
lib.sqlalchemy.engine.result.Result.columns(*col_expressions:_KeyIndexType) -> SelfEstablish the columns that should be returned in each row.
method
lib.sqlalchemy.engine.result.Result.fetchmany(size:Optional[int]=None) -> Sequence[Row[Unpack[_Ts]]]Fetch many rows.
method
lib.sqlalchemy.engine.result.Result.fetchone() -> Optional[Row[Unpack[_Ts]]]Fetch one row.
method
lib.sqlalchemy.engine.result.Result.one() -> Row[Unpack[_Ts]]Return exactly one row or raise an exception.
method
lib.sqlalchemy.engine.result.Result.partitions(size:Optional[int]=None) -> Iterator[Sequence[Row[Unpack[_Ts]]]]Iterate through sub-lists of rows of the size given.
method
lib.sqlalchemy.engine.result.Result.scalar_one_or_none() -> Optional[_T]Return exactly one scalar result or ``None``.
class
lib.sqlalchemy.engine.result.ResultMetaDataBase for metadata about result rows.
class
lib.sqlalchemy.engine.result.SimpleResultMetaDataresult metadata for in-memory collections.
class
lib.sqlalchemy.engine.row.RowRepresent a single result row.
method
lib.sqlalchemy.engine.row.Row.t() -> Tuple[Unpack[_Ts]]A synonym for :meth:`.Row._tuple`.
method
lib.sqlalchemy.engine.row.Row.tuple() -> Tuple[Unpack[_Ts]]Return a 'tuple' form of this :class:`.Row`.
method
lib.sqlalchemy.engine.url.URL.get_backend_name() -> strReturn the backend name.
method
lib.sqlalchemy.engine.url.URL.get_driver_name() -> strReturn the backend name.
method
lib.sqlalchemy.engine.url.URL.render_as_string(hide_password:bool=True) -> strRender this :class:`_engine.URL` object as a string.
func
lib.sqlalchemy.engine.url.make_url(name_or_url:Union[str, URL]) -> URLGiven a string, produce a new URL instance.
func
lib.sqlalchemy.engine.util.connection_memoize(key:str) -> Callable[[_C], _C]Decorator, memoize a function in a connection.info stash.
func
lib.sqlalchemy.event.api.listen(target:Any, identifier:str, fn:Callable[..., Any], *args:Any, **kw:Any) -> NoneRegister a listener function for the given target.
func
lib.sqlalchemy.event.api.remove(target:Any, identifier:str, fn:Callable[..., Any]) -> NoneRemove an event listener.
class
lib.sqlalchemy.exc.ArgumentErrorRaised when an invalid or conflicting function argument is supplied.
class
lib.sqlalchemy.exc.CompileErrorRaised when an error occurs during SQL compilation
class
lib.sqlalchemy.exc.DBAPIErrorRaised when the execution of a database operation fails.
class
lib.sqlalchemy.exc.DataErrorWraps a DB-API DataError.
class
lib.sqlalchemy.exc.DatabaseErrorWraps a DB-API DatabaseError.
class
lib.sqlalchemy.exc.DisconnectionErrorA disconnect is detected on a raw DB-API connection.
class
lib.sqlalchemy.exc.HasDescriptionCodehelper which adds 'code' as an attribute and '_code_str' as a method
class
lib.sqlalchemy.exc.IdentifierErrorRaised when a schema name is beyond the max character limit
class
lib.sqlalchemy.exc.IntegrityErrorWraps a DB-API IntegrityError.
class
lib.sqlalchemy.exc.InterfaceErrorWraps a DB-API InterfaceError.
class
lib.sqlalchemy.exc.InternalErrorWraps a DB-API InternalError.
class
lib.sqlalchemy.exc.InvalidRequestErrorSQLAlchemy was asked to do something it can't do.
class
lib.sqlalchemy.exc.NoResultFoundA database result was required but none was found.
class
lib.sqlalchemy.exc.NoSuchColumnErrorA nonexistent column is requested from a ``Row``.
class
lib.sqlalchemy.exc.NoSuchTableErrorTable does not exist or is not visible to a connection.
class
lib.sqlalchemy.exc.NotSupportedErrorWraps a DB-API NotSupportedError.
class
lib.sqlalchemy.exc.OperationalErrorWraps a DB-API OperationalError.
class
lib.sqlalchemy.exc.ProgrammingErrorWraps a DB-API ProgrammingError.
class
lib.sqlalchemy.exc.SADeprecationWarningIssued for usage of deprecated APIs.
class
lib.sqlalchemy.exc.SAWarningIssued at runtime.
class
lib.sqlalchemy.exc.SQLAlchemyErrorGeneric error class.
class
lib.sqlalchemy.exc.StatementErrorAn error occurred during execution of a SQL statement.
class
lib.sqlalchemy.exc.UnreflectableTableErrorTable exists but can't be reflected for some reason.
func
lib.sqlalchemy.ext.asyncio.base.asyncstartablecontext(func:Callable[..., AsyncIterator[_T_co]]) -> Callable[..., GeneratorStartableContext[_T_co]]@asyncstartablecontext decorator.
class
lib.sqlalchemy.ext.asyncio.engine.AsyncConnectionAn asyncio proxy for a :class:`_engine.Connection`.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncConnection.close() -> NoneClose this :class:`_asyncio.AsyncConnection`.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncConnection.closed() -> AnyReturn True if this connection is closed.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncConnection.in_nested_transaction() -> boolReturn True if a transaction is in progress.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncConnection.in_transaction() -> boolReturn True if a transaction is in progress.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncConnection.invalidated() -> AnyReturn True if this connection was invalidated.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncConnection.run_sync(fn:Callable[Concatenate[Connection, _P], _T], *arg:_P.args, **kw:_P.kwargs) -> _TInvoke the given synchronous (i.e.
class
lib.sqlalchemy.ext.asyncio.engine.AsyncEngineAn asyncio proxy for a :class:`_engine.Engine`.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncEngine.echo() -> AnyWhen ``True``, enable log output for this element.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncEngine.engine() -> AnyReturns this :class:`.Engine`.
class
lib.sqlalchemy.ext.asyncio.engine.AsyncTransactionAn asyncio proxy for a :class:`_engine.Transaction`.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncTransaction.close() -> NoneClose this :class:`.AsyncTransaction`.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncTransaction.commit() -> NoneCommit this :class:`.AsyncTransaction`.
method
lib.sqlalchemy.ext.asyncio.engine.AsyncTransaction.rollback() -> NoneRoll back this :class:`.AsyncTransaction`.
func
lib.sqlalchemy.ext.asyncio.engine.create_async_engine(url:Union[str, URL], **kw:Any) -> AsyncEngineCreate a new async engine instance.
func
lib.sqlalchemy.ext.asyncio.engine.create_async_pool_from_url(url:Union[str, URL], **kwargs:Any) -> PoolCreate a new async engine instance.
class
lib.sqlalchemy.ext.asyncio.exc.AsyncContextAlreadyStarteda startable context manager is already started.
class
lib.sqlalchemy.ext.asyncio.exc.AsyncContextNotStarteda startable context manager has not been started.
method
lib.sqlalchemy.ext.asyncio.result.AsyncResult.all() -> Sequence[Row[Unpack[_Ts]]]Return all rows in a list.
method
lib.sqlalchemy.ext.asyncio.result.AsyncResult.fetchmany(size:Optional[int]=None) -> Sequence[Row[Unpack[_Ts]]]Fetch many rows.
method
lib.sqlalchemy.ext.asyncio.result.AsyncResult.fetchone() -> Optional[Row[Unpack[_Ts]]]Fetch one row.
method
lib.sqlalchemy.ext.asyncio.result.AsyncResult.one() -> Row[Unpack[_Ts]]Return exactly one row or raise an exception.
class
lib.sqlalchemy.ext.asyncio.session.AsyncSessionAsyncio version of :class:`_orm.Session`.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.aclose() -> NoneA synonym for :meth:`_asyncio.AsyncSession.close`.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.add(instance:object, *_warn:bool=True) -> NonePlace an object into this :class:`_orm.Session`.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.commit() -> NoneCommit the current transaction in progress.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.delete(instance:object) -> NoneMark an instance as deleted.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.expire(instance:object, attribute_names:Optional[Iterable[str]]=None) -> NoneExpire the attributes on an instance.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.expunge(instance:object) -> NoneRemove the `instance` from this ``Session``.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.flush(objects:Optional[Sequence[Any]]=None) -> NoneFlush all the object changes to the database.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.info() -> AnyA user-modifiable dictionary.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.no_autoflush() -> AnyReturn a context manager that disables autoflush.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.rollback() -> NoneRollback the current transaction in progress.
method
lib.sqlalchemy.ext.asyncio.session.AsyncSession.run_sync(fn:Callable[Concatenate[Session, _P], _T], *arg:_P.args, **kw:_P.kwargs) -> _TInvoke the given synchronous (i.e.
class
lib.sqlalchemy.ext.asyncio.session.async_sessionmakerA configurable :class:`.AsyncSession` factory.
method
lib.sqlalchemy.ext.asyncio.session.async_sessionmaker.configure(**new_kw:Any) -> None(Re)configure the arguments for this async_sessionmaker.
func
lib.sqlalchemy.ext.asyncio.session.close_all_sessions() -> NoneClose all :class:`_asyncio.AsyncSession` sessions.
class
lib.sqlalchemy.ext.automap.AutomapBaseBase class for an "automap" schema.
func
lib.sqlalchemy.ext.automap.automap_base(declarative_base:Optional[Type[Any]]=None, **kw:Any) -> AnyProduce a declarative automap base.
class
lib.sqlalchemy.ext.baked.BakedQueryA builder object for :class:`.query.Query` objects.
method
lib.sqlalchemy.ext.baked.BakedQuery.bakery(size=200, _size_alert=None)Construct a new bakery.
class
lib.sqlalchemy.ext.baked.BakeryCallable which returns a :class:`.BakedQuery`.
class
lib.sqlalchemy.ext.baked.ResultInvokes a :class:`.BakedQuery` against a :class:`.Session`.
method
lib.sqlalchemy.ext.baked.Result.all()Return all rows.
method
lib.sqlalchemy.ext.baked.Result.count()return the 'count'.
method
lib.sqlalchemy.ext.baked.Result.first()Return the first row.
method
lib.sqlalchemy.ext.baked.Result.get(ident)Retrieve an object based on identity.
class
lib.sqlalchemy.ext.declarative.extensions.ConcreteBaseA helper class for 'concrete' declarative mappings.
class
lib.sqlalchemy.ext.horizontal_shard.ShardedQueryQuery class used with :class:`.ShardedSession`.
method
lib.sqlalchemy.ext.horizontal_shard.ShardedQuery.set_shard(shard_id:ShardIdentifier) -> SelfReturn a new query, limited to a single shard ID.
class
lib.sqlalchemy.ext.indexable.index_propertyA property generator.
class
lib.sqlalchemy.ext.instrumentation.InstrumentationManagerUser-defined class instrumentation extension.
func
lib.sqlalchemy.ext.mutable.MutableBase.load(state:InstanceState[_O], *args:Any) -> NoneListen for objects loaded or refreshed.
class
lib.sqlalchemy.ext.mutable.MutableDictA dictionary type that implements :class:`.Mutable`.
method
lib.sqlalchemy.ext.mutable.MutableDict.coerce(key:str, value:Any) -> MutableDict[_KT, _VT] | NoneConvert plain dictionary to instance of this class.
class
lib.sqlalchemy.ext.mutable.MutableListA list type that implements :class:`.Mutable`.
method
lib.sqlalchemy.ext.mutable.MutableList.coerce(key:str, value:MutableList[_T] | _T) -> Optional[MutableList[_T]]Convert plain list to instance of this class.
class
lib.sqlalchemy.ext.mutable.MutableSetA set type that implements :class:`.Mutable`.
method
lib.sqlalchemy.ext.mutable.MutableSet.coerce(index:str, value:Any) -> Optional[MutableSet[_T]]Convert plain set to instance of this class.
func
lib.sqlalchemy.ext.orderinglist.count_from_0(index:int, collection:object) -> intNumbering function: consecutive integers starting at 0.
func
lib.sqlalchemy.ext.orderinglist.count_from_1(index:int, collection:object) -> intNumbering function: consecutive integers starting at 1.
class
lib.sqlalchemy.inspection.Inspectabledefine a class as inspectable.
func
lib.sqlalchemy.orm._orm_constructors.clear_mappers() -> NoneRemove all mappers from all classes.
method
lib.sqlalchemy.orm.attributes.History.has_changes() -> boolReturn True if this :class:`.History` has changes.
method
lib.sqlalchemy.orm.attributes.History.non_added() -> Sequence[Any]Return a collection of unchanged + deleted.
method
lib.sqlalchemy.orm.attributes.History.non_deleted() -> Sequence[Any]Return a collection of added + unchanged.
method
lib.sqlalchemy.orm.attributes.History.sum() -> Sequence[Any]Return a collection of added + unchanged + deleted.
func
lib.sqlalchemy.orm.attributes.del_attribute(instance:object, key:str) -> NoneDelete the value of an attribute, firing history events.
func
lib.sqlalchemy.orm.attributes.flag_modified(instance:object, key:str) -> NoneMark an attribute on an instance as 'modified'.
func
lib.sqlalchemy.orm.attributes.get_attribute(instance:object, key:str) -> AnyGet the value of an attribute, firing any callables required.
func
lib.sqlalchemy.orm.attributes.has_parent(cls:Type[_O], obj:_O, key:str, optimistic:bool=False) -> boolTODO
func
lib.sqlalchemy.orm.attributes.set_committed_value(instance:object, key:str, value:Any) -> NoneSet the value of an attribute with no history events.
class
lib.sqlalchemy.orm.base.MappedRepresent an ORM mapped attribute on a mapped class.
func
lib.sqlalchemy.orm.base.instance_str(instance:object) -> strReturn a string describing an instance.
func
lib.sqlalchemy.orm.base.state_str(state:InstanceState[Any]) -> strReturn a string describing an instance via its InstanceState.
method
lib.sqlalchemy.orm.collections.CollectionAdapter.clear_without_event() -> NoneEmpty the collection, firing no events.
method
lib.sqlalchemy.orm.collections.CollectionAdapter.data() -> _AdaptedCollectionProtocolThe entity collection being adapted.
method
lib.sqlalchemy.orm.collections.CollectionAdapter.remove_without_event(item:Any) -> NoneRemove an entity from the collection, firing no events.
class
lib.sqlalchemy.orm.collections.InstrumentedDictAn instrumented version of the built-in dict.
class
lib.sqlalchemy.orm.collections.InstrumentedListAn instrumented version of the built-in list.
class
lib.sqlalchemy.orm.collections.InstrumentedSetAn instrumented version of the built-in set.
class
lib.sqlalchemy.orm.collections.collectionDecorators for entity collection classes.
method
lib.sqlalchemy.orm.collections.collection.adds(arg:int) -> Callable[[_FN], _FN]Mark the method as adding an entity to the collection.
func
lib.sqlalchemy.orm.collections.collection_adapter(collection:Collection[Any]) -> CollectionAdapterFetch the :class:`.CollectionAdapter` for a collection.
class
lib.sqlalchemy.orm.decl_api.DCTransformDeclarativemetaclass that includes @dataclass_transforms
class
lib.sqlalchemy.orm.decl_api.DeclarativeBaseBase class used for declarative class definitions.
func
lib.sqlalchemy.orm.decl_api.add_mapped_attribute(target:Type[_O], key:str, attr:MapperProperty[Any]) -> NoneAdd a new mapped attribute to an ORM mapped class.
func
lib.sqlalchemy.orm.decl_api.declarative_mixin(cls:Type[_T]) -> Type[_T]Mark a class as providing the feature of "declarative mixin".
class
lib.sqlalchemy.orm.decl_api.registryGeneralized registry for mapping classes.
method
lib.sqlalchemy.orm.decl_api.registry.dispose(cascade:bool=False) -> NoneDispose of all mappers in this :class:`_orm.registry`.
method
lib.sqlalchemy.orm.decl_api.registry.generate_base(mapper:Optional[Callable[..., Mapper[Any]]]=None, cls:Type[Any]=object, name:str='Base', metaclass:Type[Any]=DeclarativeMeta) -> AnyGenerate a declarative base class.
method
lib.sqlalchemy.orm.decl_api.registry.map_declaratively(cls:Type[_O]) -> Mapper[_O]Map a class declaratively.
method
lib.sqlalchemy.orm.decl_api.registry.map_imperatively(class_:Type[_O], local_table:Optional[FromClause]=None, **kw:Any) -> Mapper[_O]Map a class imperatively.
class
lib.sqlalchemy.orm.decl_base.MappedClassProtocolA protocol representing a SQLAlchemy mapped class.
class
lib.sqlalchemy.orm.events.AttributeEventsDefine events for object attributes.
method
lib.sqlalchemy.orm.events.AttributeEvents.append(target:_O, value:_T, initiator:Event, *key:EventConstants=NO_KEY) -> Optional[_T]Receive a collection append event.
method
lib.sqlalchemy.orm.events.AttributeEvents.bulk_replace(target:_O, values:Iterable[_T], initiator:Event, *keys:Optional[Iterable[EventConstants]]=None) -> NoneReceive a collection 'bulk replace' event.
method
lib.sqlalchemy.orm.events.AttributeEvents.dispose_collection(target:_O, collection:Collection[Any], collection_adapter:CollectionAdapter) -> NoneReceive a 'collection dispose' event.
method
lib.sqlalchemy.orm.events.AttributeEvents.init_collection(target:_O, collection:Type[Collection[Any]], collection_adapter:CollectionAdapter) -> NoneReceive a 'collection init' event.
method
lib.sqlalchemy.orm.events.AttributeEvents.init_scalar(target:_O, value:_T, dict_:Dict[Any, Any]) -> NoneReceive a scalar "init" event.
method
lib.sqlalchemy.orm.events.AttributeEvents.modified(target:_O, initiator:Event) -> NoneReceive a 'modified' event.
method
lib.sqlalchemy.orm.events.AttributeEvents.remove(target:_O, value:_T, initiator:Event, *key:EventConstants=NO_KEY) -> NoneReceive a collection remove event.
method
lib.sqlalchemy.orm.events.AttributeEvents.set(target:_O, value:_T, oldvalue:_T, initiator:Event) -> NoneReceive a scalar set event.
class
lib.sqlalchemy.orm.events.InstanceEventsDefine events specific to object lifecycle.
method
lib.sqlalchemy.orm.events.InstanceEvents.init(target:_O, args:Any, kwargs:Any) -> NoneReceive an instance when its constructor is called.
class
lib.sqlalchemy.orm.events.InstrumentationEventsEvents related to class instrumentation events.
method
lib.sqlalchemy.orm.events.InstrumentationEvents.attribute_instrument(cls:ClassManager[_O], key:_KT, inst:_O) -> NoneCalled when an attribute is instrumented.
method
lib.sqlalchemy.orm.events.InstrumentationEvents.class_instrument(cls:ClassManager[_O]) -> NoneCalled after the given class is instrumented.
method
lib.sqlalchemy.orm.events.InstrumentationEvents.class_uninstrument(cls:ClassManager[_O]) -> NoneCalled before the given class is uninstrumented.
class
lib.sqlalchemy.orm.events.MapperEventsDefine events specific to mappings.
class
lib.sqlalchemy.orm.events.SessionEventsDefine events specific to :class:`.Session` lifecycle.
method
lib.sqlalchemy.orm.events.SessionEvents.after_attach(session:Session, instance:_O) -> NoneExecute after an instance is attached to a session.
method
lib.sqlalchemy.orm.events.SessionEvents.after_commit(session:Session) -> NoneExecute after a commit has occurred.
method
lib.sqlalchemy.orm.events.SessionEvents.after_rollback(session:Session) -> NoneExecute after a real DBAPI rollback has occurred.
method
lib.sqlalchemy.orm.events.SessionEvents.before_attach(session:Session, instance:_O) -> NoneExecute before an instance is attached to a session.
method
lib.sqlalchemy.orm.events.SessionEvents.before_commit(session:Session) -> NoneExecute before commit is called.
method
lib.sqlalchemy.orm.events.SessionEvents.before_flush(session:Session, flush_context:UOWTransaction, instances:Optional[Sequence[_O]]) -> NoneExecute before flush process has started.
class
lib.sqlalchemy.orm.exc.FlushErrorA invalid condition was detected during flush().
class
lib.sqlalchemy.orm.exc.LoaderStrategyExceptionA loader strategy for an attribute does not exist.
class
lib.sqlalchemy.orm.exc.UnmappedClassErrorAn mapping operation was requested for an unknown class.
class
lib.sqlalchemy.orm.exc.UnmappedColumnErrorMapping operation was requested on an unknown column.
class
lib.sqlalchemy.orm.exc.UnmappedErrorBase for exceptions that involve expected mappings not present.
class
lib.sqlalchemy.orm.exc.UnmappedInstanceErrorAn mapping operation was requested for an unknown instance.
class
lib.sqlalchemy.orm.instrumentation.ClassManagerTracks state information at the class level.
method
lib.sqlalchemy.orm.instrumentation.ClassManager.has_parent(state:InstanceState[_O], key:str, optimistic:bool=False) -> boolTODO
class
lib.sqlalchemy.orm.instrumentation.InstrumentationFactoryFactory for new ClassManager instances.
class
lib.sqlalchemy.orm.interfaces.MapperOptionDescribe a modification to a Query
method
lib.sqlalchemy.orm.interfaces.MapperOption.process_query(query:Query[Any]) -> NoneApply a modification to the given :class:`_query.Query`.
class
lib.sqlalchemy.orm.interfaces.PropComparatorDefines SQL operations for ORM mapped attributes.
class
lib.sqlalchemy.orm.mapped_collection.KeyFuncDictBase for ORM mapped dictionary classes.
method
lib.sqlalchemy.orm.mapper.Mapper.add_property(key:str, prop:Union[Column[Any], MapperProperty[Any]]) -> NoneAdd an individual MapperProperty to this mapper.
method
lib.sqlalchemy.orm.mapper.Mapper.c() -> ReadOnlyColumnCollection[str, Column[Any]]A synonym for :attr:`_orm.Mapper.columns`.
method
lib.sqlalchemy.orm.mapper.Mapper.entity()Part of the inspection API.
method
lib.sqlalchemy.orm.mapper.Mapper.get_property(key:str, _configure_mappers:bool=False) -> MapperProperty[Any]return a MapperProperty associated with the given key.
method
lib.sqlalchemy.orm.mapper.Mapper.isa(other:Mapper[Any]) -> boolReturn True if the this mapper inherits from the given mapper.
method
lib.sqlalchemy.orm.mapper.Mapper.mapper() -> Mapper[_O]Part of the inspection API.
func
lib.sqlalchemy.orm.mapper.reconstructor(fn:_Fn) -> _FnDecorate a method as the 'reconstructor' hook.
class
lib.sqlalchemy.orm.path_registry.PathRegistryRepresent query load paths and registry functions.
class
lib.sqlalchemy.orm.path_registry.PathTokencacheable string token
class
lib.sqlalchemy.orm.properties.MappedColumnMaps a single :class:`_schema.Column` on a class.
class
lib.sqlalchemy.orm.query.BulkDeleteBulkUD which handles DELETEs.
class
lib.sqlalchemy.orm.query.BulkUDState used for the orm.Query version of update() / delete().
class
lib.sqlalchemy.orm.query.BulkUpdateBulkUD which handles UPDATEs.
class
lib.sqlalchemy.orm.query.QueryORM-level SQL construction object.
method
lib.sqlalchemy.orm.query.Query.autoflush(setting:bool) -> SelfReturn a Query with a specific 'autoflush' setting.
method
lib.sqlalchemy.orm.query.Query.enable_assertions(value:bool) -> SelfControl whether assertions are generated.
method
lib.sqlalchemy.orm.query.Query.enable_eagerloads(value:bool) -> SelfControl whether or not eager joins and subqueries are rendered.
About this data
These signatures were extracted from the public source of sqlalchemy/sqlalchemy
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.