SQLAlchemy Layer - ORM 说明

请添加图片描述

SQLAlchemy ORM

  • Lets you compose SQL expressions by mapping python classes of objects to tables in the database
  • Is the highest layer of abstraction in SQLAlchemy
  • Wraps the SQL Expressions and Engine to work together to interact with the database
  • Split into two libraries:
    • SQLAlchemy Core
    • SQLAlchemy ORM. SQLAlchemy ORM is offered as an optional library, so you don’t have to use the ORM in order to use the rest of SQLAlchemy.
      • The ORM uses the Core library inside
      • The ORM lets you map from the database schema to the application’s Python objects.
      • The ORM persists objects into corresponding database tables

ORM layer: Highest level of abstraction; maps classes to tables.
SQL Expression: Lets you compose SQL statements by building Python objects.
Engine: Makes it possible to interact with any database management system, regardless of the SQL flavor used.
Connection pool: Avoids opening and closing connections for every data change.
Dialect: Makes it possible to interact with any database management system, regardless of the SQL flavor used.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值