Essential SQLAlchemy, 2/e (Paperback)
暫譯: 精要 SQLAlchemy, 第二版 (平裝本)

Jason Myers, Rick Copeland

買這商品的人也買了...

相關主題

商品描述

Dive into SQLAlchemy, the popular, open-source code library that helps Python programmers work with relational databases such as Oracle, MySQL, PostgresSQL, and SQLite. Using real-world examples, this practical guide shows you how to build a simple database application with SQLAlchemy, and how to connect to multiple databases simultaneously with the same metadata.

SQL is a powerful language for querying and manipulating data, but it’s tough to integrate it with your application. SQLAlchemy helps you map Python objects to database tables without substantially changing your existing Python code. If you’re an intermediate Python developer with knowledge of basic SQL syntax and relational theory, this book serves as both a learning tool and a handy reference.

Essential SQLAlchemy includes several sections:

  • SQLAlchemy Core: Provide database services to your applications in a Pythonic way with the SQL Expression Language
  • SQLAlchemy ORM: Use the object relational mapper to bind database schema and operations to data objects in your application
  • Alembic: Use this lightweight database migration tool to handle changes to the database as your application evolves
  • Cookbook: Learn how to use SQLAlchemy with web frameworks like Flask and libraries like SQLAcodegen

商品描述(中文翻譯)

深入了解 SQLAlchemy,這個流行的開源程式庫,幫助 Python 程式設計師與關聯式資料庫(如 Oracle、MySQL、PostgreSQL 和 SQLite)進行互動。這本實用指南使用真實世界的範例,展示如何使用 SQLAlchemy 建立一個簡單的資料庫應用程式,以及如何使用相同的元資料同時連接多個資料庫。

SQL 是一種強大的查詢和操作資料的語言,但將其整合到應用程式中卻相當困難。SQLAlchemy 幫助你將 Python 物件映射到資料庫表格,而不需要大幅改變你現有的 Python 代碼。如果你是一位具備基本 SQL 語法和關聯理論知識的中級 Python 開發者,這本書既是學習工具,也是方便的參考資料。

《Essential SQLAlchemy》包含幾個部分:
- **SQLAlchemy Core:** 以 Pythonic 的方式為你的應用程式提供資料庫服務,使用 SQL 表達式語言
- **SQLAlchemy ORM:** 使用物件關聯映射器將資料庫架構和操作綁定到你應用程式中的資料物件
- **Alembic:** 使用這個輕量級的資料庫遷移工具來處理隨著應用程式演變而對資料庫的變更
- **Cookbook:** 學習如何將 SQLAlchemy 與 Flask 等網頁框架及 SQLAcodegen 等庫一起使用