Crate conservator

Crate conservator 

Source

Modules§

migrate

Macros§

migrate
Embeds migrations into the binary by expanding to a static instance of Migrator.

Structs§

DeleteBuilder
ExistsRow
Field
表示数据库表中一个字段的元信息
FieldInfo
字段元信息(不带泛型,用于存储在 Expression 中)
InsertBuilder
InsertManyBuilder
OrderedField
带排序方向的字段
Pool
An asynchronous pool of SQLx database connections.
Postgres
PostgreSQL database driver.
SelectBuilder
SELECT 查询构建器
SqlResult
表达式生成的 SQL 结果
UpdateBuilder
UPDATE 查询构建器

Enums§

Expression
SQL 表达式
JoinType
JOIN 类型
Operator
SQL 操作符
Order
排序方向
Value
存储 SQL 参数值的枚举

Traits§

Creatable
Domain
FromRow
A record that can be built from a row returned by the database.
IntoOrderedField
可转换为 OrderedField 的 trait
IntoValue
将 Rust 类型转换为 Value 的 trait
Selectable
轻量级 trait,用于 SELECT 返回类型

Type Aliases§

PgPoolOptions
An alias for PoolOptions, specialized for Postgres.
SingleNumberRow

Attribute Macros§

auto
sql

Derive Macros§

Creatable
Domain
FromRow
Selectable
派生 Selectable trait