Skip to Content
SQLAlchemy 核心指南,第 2 版
book

SQLAlchemy 核心指南,第 2 版

by Jason Myers, Rick Copeland
May 2025
Intermediate to advanced
208 pages
2h 36m
Chinese
O'Reilly Media, Inc.

Overview

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

深入探讨 SQLAlchemy,这是一个流行的开源代码库,可帮助 Python 程序员处理 Oracle、MySQL、PostgresSQL 和 SQLite 等关系数据库。本实用指南通过实际案例,向您展示如何使用 SQLAlchemy 构建一个简单的数据库应用程序,以及如何使用相同的元数据同时连接多个数据库。

SQL 是一种用于查询和操作数据的强大语言,但很难与您的应用程序集成。SQLAlchemy 可帮助您将 Python 对象映射到数据库表,而无需大幅更改现有的 Python 代码。如果您是具备基本 SQL 语法和关系理论知识的中级 Python 开发人员,本书可作为学习工具和实用参考。

《SQLAlchemy 核心》包含以下几个部分:

  • SQLAlchemy 核心:使用 SQL 表达式语言以 Python 方式为您的应用程序提供数据库服务
  • SQLAlchemy ORM:使用对象关系映射器将数据库模式和操作与应用程序中的数据对象绑定
  • Alembic:使用这个轻量级数据库迁移工具,处理应用程序演进过程中数据库的变更
  • 食谱:学习如何将 SQLAlchemy 与 Flask 等 Web 框架和 SQLAcodegen 等库一起使用
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
How to Overcome a Power Deficit

How to Overcome a Power Deficit

Cyril Bouquet, Jean-Louis Barsoux
The Human Factor in AI-Based Decision-Making

The Human Factor in AI-Based Decision-Making

Philip Meissner, Christoph Keding

Publisher Resources

ISBN: 9798341659087