SQLAlchemy Documentation¶
Getting Started
SQLAlchemyを初めてお使いの方は、ここから始めてください。
For Python Beginners: Installation Guide - pipなどを使用したインストールに関する基本的なガイダンス
For Python Veterans: SQLAlchemy Overview - アーキテクチャの簡単な概要
Tutorials
SQLAlchemyの新しいユーザは、古いSQLAlchemyリリースシリーズのベテランと同様に、SQLAlchemy Unified Tutorial から始める必要があります。これは、ORMまたは単にCoreを使用するときに錬金術師が知る必要のあるすべてをカバーしています。
For a quick glance: ORM Quick Start - ORMを使った作業がどのようなものかを垣間見ることができます
For all users: SQLAlchemy Unified Tutorial - CoreとORMの詳細なチュートリアル
Migration Notes
古いバージョンのSQLAlchemyを使用しているユーザ、特に1.xスタイルから移行したユーザは、このドキュメントを読むとよいでしょう。
Migrating to SQLAlchemy 2.0 - 1.3または1.4から2.0への移行の経緯
What’s New in SQLAlchemy 2.0? - 1.xへの移行後の2.0の新機能と動作
Changelog catalog - すべてのSQLAlchemyバージョンの詳細な変更ログ
Reference and How To
SQLAlchemy ORM - ORMを使用するための詳細なガイドとAPIリファレンス
マッピングクラス: Mapping Python Classes | Relationship Configuration
ORMの使用: Using the ORM Session | ORM Querying Guide | Using AsyncIO
構成の拡張: Association Proxy | Hybrid Attributes | Mutable Scalars | Automap | All extensions
ORMの拡張: ORM Events and Internals
Other: Introduction to Examples
SQLAlchemy Core - Coreを操作するための詳細なガイドとAPIリファレンス
エンジン、接続、プール: Engine Configuration | Connections, Transactions, Results | AsyncIO Support | Connection Pooling
スキーマ定義: Overview | Tables and Columns | Database Introspection (Reflection) | Insert/Update Defaults | Constraints and Indexes | Using Data Definition Language (DDL)
SQL文: SQL Expression Elements | Operator Reference | SELECT and related constructs | INSERT, UPDATE, DELETE | SQL Functions | Table of Contents
データ型: Overview | Building Custom Types | Type API Reference
Dialect Documentation
- ダイアレクト は、SQLAlchemyがさまざまなタイプのDB APIやデータベースと通信するために使用するシステムです。このセクションでは、個々のダイアレクトに関する注意、オプション、および使用パターンについて説明します。
PostgreSQL | MySQL and MariaDB | SQLite | Oracle | Microsoft SQL Server
Supplementary
Frequently Asked Questions - 一般的な問題と解決策の集合
Glossary - SQLAlchemyのドキュメントで使用されている用語
Error Message Guide - 多くのSQLAlchemyエラーの説明