Pony ORM v0.7.14 Documentation
首页
白天
夜间
下载
阅读记录
书签管理
我的书签
添加书签
移除书签
编辑文档
Integration with FastAPI
来源 1
浏览
489
扫码
打印
2021-09-08 23:17:38
Integration with FastAPI
上一篇:
下一篇:
发布点评
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
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
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
Entity Relationships
One-to-many relationship
Many-to-many relationship
One-to-one relationship
Self-references
Multiple relationships between two entities
Integration with flask
Working with entity relationships
Establishing a relationship
Operations with collections
Array Data Type Support
Overview
Declaring an Array attribute
Operations with arrays
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
Integration with FastAPI
Setup
Models and Schemas
Async and db_session
API Reference
Database
Supported databases
Transactions & db_session
Entity definition
Entity methods
Queries and functions
Query object
Statistics - QueryStat
Getting Started with Pony
Installing
Getting objects
Updating an object
Writing raw SQL queries
Pony examples
Creating the database object
Defining entities
Database binding
Mapping entities to database tables
Using the debug mode
Creating entity instances
db_session
Writing queries
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
What is Pony ORM?
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
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
暂无相关搜索结果!
本文档使用
全库网
构建
×
思维导图备注
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度