Declarative API — SQLAlchemy 2.0 Documentation

Release: 2.0.39 | Release Date: March 11, 2025

# SQLAlchemy 2.0 Documentation

# Declarative API

## API Reference

Changed in version 1.4: The fundamental structures of the declarative system are now part of SQLAlchemy ORM directly. For these components see:

- `declarative_base()`

- `declared_attr`

- `has_inherited_table()`

- `synonym_for()`

- `sqlalchemy.orm.as_declarative()`

See Declarative Extensions for the remaining Declarative extension classes.