×
思维导图备注
Pony ORM v0.7.14 Documentation
首页
白天
夜间
小程序
阅读
书签
我的书签
添加书签
移除书签
Entity methods
来源:ponyorm
浏览
276
扫码
分享
2021-09-08 23:18:20
Entity methods
Entity methods
See the
Entity methods
part of the API Reference for details.
当前内容版权归
ponyorm
或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
ponyorm
.
上一篇:
下一篇:
What is Pony ORM?
Getting Started with Pony
Installing
Creating the database object
Defining entities
Database binding
Mapping entities to database tables
Using the debug mode
Creating entity instances
db_session
Writing queries
Getting objects
Updating an object
Writing raw SQL queries
Pony examples
Connecting to the Database
Creating the Database object
Defining entities which are related to the Database object
Binding the database object to a specific database
Mapping entities to the database tables
Methods and attributes of the Database object
Using Database object for raw SQL queries
Customizing connection behavior
Database statistics
Declaring Entities
Declaring an entity
Entity attributes
Attribute data types
Attribute options
Entity inheritance
Adding custom methods to entities
Mapping customization
Hybrid methods and properties
Entity Relationships
One-to-many relationship
Many-to-many relationship
One-to-one relationship
Self-references
Multiple relationships between two entities
Transactions and db_session
Working with db_session
Working with multiple databases
Functions for working with transactions
Optimistic concurrency control
Pessimistic locking
How Pony avoids lost updates
Transaction isolation levels and database peculiarities
Handling disruptions
Working with entity instances
Creating an entity instance
Loading objects from the database
Updating an object
Deleting an object
Saving objects in the database
Entity methods
Entity hooks
Serializing entity instances using pickle
Queries
Using Python generator expressions
Using lambda functions
Pony ORM functions used to query the database
Pony query examples
Query object methods
Using date and time in queries
Automatic DISTINCT
Functions which can be used inside a query
Using raw SQL
Working with entity relationships
Establishing a relationship
Operations with collections
Aggregation
Query object aggregate functions
Several aggregate functions in one query
Function count
Conditional count
More sophisticated aggregate queries
Queries with HAVING
Aggregate functions in order by section
JSON Data Type Support
Overview
Declaring a JSON attribute
Assigning value to the JSON attribute
Reading JSON attribute
Modifying JSON attribute
Querying JSON structures
JSON Support in Databases
Array Data Type Support
Overview
Declaring an Array attribute
Operations with arrays
API Reference
Database
Supported databases
Transactions & db_session
Entity definition
Entity methods
Queries and functions
Query object
Statistics - QueryStat
Integration with flask
Integration with FastAPI
Setup
Models and Schemas
Async and db_session
暂无相关搜索结果!
本文档使用
BookStack
构建
×
分享,让知识传承更久远
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
普通下载
下载码下载(免登录无限下载)
你与大神的距离,只差一个APP
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
温馨提示
每天每在网站阅读学习一分钟时长可下载一本电子书,每天连续签到可增加阅读时长
下载码方式下载:免费、免登录、无限制。
免费获取下载码
下载码
文档格式
PDF
EPUB
MOBI
码上下载
×
微信小程序阅读
您与他人的薪资差距,只差一个随时随地学习的小程序
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度