GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • home
  • features
  • Philosophy Statement
  • Feature Overview
  • Testimonials
  • news
  • Current Documentation (version 2.1)
  • Documentation by Version
  • Version 2.0
  • Version 1.4
  • Get Support
  • Participate
  • Develop
  • Code of Conduct

This view

  • Original page
  • New address

GeezerVison is showing docs.sqlalchemy.org — SQLAlchemy Documentation — SQLAlchemy 2.1 Documentation

Release: 2.1.8 current release | Release Date: November 3, 2026

SQLAlchemy 2.1 Documentation

Contents | Index | Download this Documentation

Home | Download this Documentation

SQLAlchemy Documentation¶

Getting Started

New to SQLAlchemy? Start here:

  • For Python Beginners: Installation Guide - Basic guidance on installing with pip and similar tools

  • For Python Veterans: SQLAlchemy Overview - A brief architectural overview of SQLAlchemy

Tutorials

New users of SQLAlchemy, as well as veterans of older SQLAlchemy release series, should start with the SQLAlchemy Unified Tutorial, which covers everything an Alchemist needs to know when using the ORM or just Core.

  • For a quick glance: ORM Quick Start - A brief overview of what working with the ORM looks like

  • For all users: SQLAlchemy Unified Tutorial - In-depth tutorial for both Core and ORM usage

Migration Notes

Users upgrading to SQLAlchemy version 2.1 will want to read:

  • What’s New in SQLAlchemy 2.1? - New features and behaviors in version 2.1

Users transitioning from version 1.x of SQLAlchemy (e.g., version 1.4) should first transition to version 2.0 before making any additional changes needed for the smaller transition from 2.0 to 2.1. Key documentation for the 1.x to 2.x transition:

  • Migrating to SQLAlchemy 2.0 - Complete background on migrating from 1.3 or 1.4 to 2.0

  • What’s New in SQLAlchemy 2.0? - New features and behaviors introduced in version 2.0 beyond the 1.x migration

An index of all changelogs and migration documentation is available at:

  • Changelog catalog - Detailed changelogs for all SQLAlchemy Versions

Reference and How To

SQLAlchemy ORM - Detailed guides and API reference for using the ORM

  • Mapping Classes: Mapping Python Classes | Relationship Configuration

  • Using the ORM: Using the ORM Session | ORM Querying Guide | Using AsyncIO

  • Configuration Extensions: Association Proxy | Hybrid Attributes | Mutable Scalars | Automap | All extensions

  • Extending the ORM: ORM Events and Internals

  • Other: Introduction to Examples

SQLAlchemy Core - Detailed guides and API reference for working with Core

  • Engines, Connections, Pools: Engine Configuration | Connections, Transactions, Results | AsyncIO Support | Connection Pooling

  • Schema Definition: Overview | Tables and Columns | Database Introspection (Reflection) | Insert/Update Defaults | Constraints and Indexes | Using Data Definition Language (DDL)

  • SQL Statements: SQL Expression Elements | Operator Reference | SELECT and related constructs | INSERT, UPDATE, DELETE | SQL Functions | Table of Contents

  • Datatypes: Overview | Building Custom Types | Type API Reference

  • Core Basics: Overview | Runtime Inspection API | Event System | Core Event Interfaces | Creating Custom SQL Constructs

Dialect Documentation

The dialect is the system SQLAlchemy uses to communicate with various types of DBAPIs and databases. This section describes notes, options, and usage patterns regarding individual dialects.

PostgreSQL | MySQL and MariaDB | SQLite | Oracle Database | Microsoft SQL Server

More Dialects …

Supplementary

  • Frequently Asked Questions - A collection of common problems and solutions

  • Glossary - Definitions of terms used in SQLAlchemy documentation

  • Error Message Guide - Explanations of many SQLAlchemy errors

  • Complete table of contents - Full list of available documentation

  • Index - Index for easy lookup of documentation topics

© Copyright 2007-2026, the SQLAlchemy authors and contributors.

flambé! the dragon and The Alchemist image designs created and generously donated by Rotem Yaari.

Created using Sphinx 9.1.0. Documentation last generated: Wed 11 Nov 2026 04:01:21 PM EST
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.