did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780596516147

Essential Sqlalchemy

by
  • ISBN13:

    9780596516147

  • ISBN10:

    0596516142

  • Format: Paperback
  • Copyright: 2008-06-01
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $34.99 Save up to $3.50
  • Digital
    $31.49
    Add to Cart

    DURATION
    PRICE

Supplemental Materials

What is included with this book?

Summary

Essential SQLAlchemy introduces a high-level open-source code library that makes it easier for Python programmers to access relational databases such as Oracle, DB2, MySQL, PostgreSQL, and SQLite. SQLAlchemy has become increasingly popular since its release, but it still lacks good offline documentation. This practical book fills the gap, and because a developer wrote it, you get an objective look at SQLAlchemy's tools rather than an advocate's description of all the cool features. SQLAlchemy includes both a database server-independent SQL expression language and an object-relational mapper (ORM) that lets you map "plain old Python objects" (POPOs) to database tables without substantially changing your existing Python code. Essential SQLAlchemy demonstrates how to use the library to create a simple database application, walks you through simple queries, and explains how to use SQLAlchemy to connect to multiple databases simultaneously with the same Metadata.

Author Biography

Rick Copeland is a senior software engineer with retail analytics firm Predictix, LLC, where he uses SQLAlchemy extensively, primarily for web application development. He has been using Python full-time for development since 2005, in projects as diverse as demand forecasting, business web applications, compilers, and hardware synthesis.

Table of Contents

Prefacep. vii
Introduction to SQLAlchemyp. 1
What Is SQLAlchemyp. 1
The Object/Relational "Impedance Mismatch"p. 4
SQLAlchemy Philosophyp. 7
SQLAlchemy Architecturep. 10
Getting Startedp. 21
Installing SQLAlchemyp. 21
SQLAlchemy Tutorialp. 24
Engines and MetaDatap. 33
Engines and Connectablesp. 33
MetaDatap. 39
SQLAlchemy Type Enginesp. 59
Type System Overviewp. 59
Built-in Typesp. 59
Application-Specific Custom Typesp. 63
Running Queries and Updatesp. 67
Inserts, Updates, and Deletesp. 67
Queriesp. 72
Building an Object Mapperp. 93
Introduction to ORMsp. 93
Declaring Object Mappersp. 95
Declaring Relationships Between Mappersp. 107
Extending Mappersp. 120
ORM Partitioning Strategiesp. 121
Querying and Updating at the ORM Levelp. 127
The SQLAlchemy ORM Session Objectp. 127
Querying at the ORM Levelp. 139
Contextual or Thread-Local Sessionsp. 153
Inheritance Mappingp. 157
Overview of Inheritance Mappingp. 157
Single Table Inheritance Mappingp. 158
Concrete Table Inheritance Mappingp. 161
Joined Table Inheritance Mappingp. 163
Relations and Inheritancep. 167
Elixir: A Declarative Extension to SQLAlchemyp. 171
Introduction to Elixirp. 171
Installing Elixirp. 174
Using Elixirp. 174
Elixir Extensionsp. 184
SqlSoup: An Automatic Mapper for SQLAlchemyp. 189
Introduction to SqlSoupp. 189
Using SqlSoup for ORM-Style Queries and Updatesp. 191
Using SqlSoup for SQL-Level Inserts, Updates, and Deletesp. 195
When to Use SqlSoup Versus Elixir Versus "Bare" SQLAlchemyp. 195
Other SQLAlchemy Extensionsp. 199
Association Proxyp. 199
Ordering Listp. 203
Deprecated Extensionsp. 205
Indexp. 207
Table of Contents provided by Ingram. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program