而我们今天要看的主角是`sea-orm`[5] ,它是基于 sqlx 实现的 ORM 框架,号称要实现 Rust 版本 的 ActiveRecord[6] 。 SeaORM : 要做 Rust 版本的 Active Record 既然 sea-orm 喊出这样的口号,那它的架构设计肯定和 Active Record 是有点关系吧? SeaORM 示例 从它的 example 项目中可以看到如下使用示例: // https://github.com/SeaQL/sea-orm/blob/master/examples/rocket_example Entity 与 ActiveModel 抽象 Entity 抽象 主要代码在 https://github.com/SeaQL/sea-orm/tree/master/src/entity 目录下。 /transformer.rs [12] sea-orm-macros: https://github.com/SeaQL/sea-orm/blob/master/sea-orm-macros/src/
: 支持迁移 模型中支持 DateTimeUtc 和 DateTimeLocal 模拟 Join 结果 支持最大连接生存期选项 SeaORM CLI 和 Codegen 更新 crates.io - sea-orm : https://crates.io/crates/sea-orm What's new in SeaORM 0.6.0: https://www.sea-ql.org/SeaORM/blog/2022
平台集成了用户管理、权限控制、系统监控、微信公众号管理等核心功能,适用于中小型企业的信息化建设 ✨ 核心特性 Rust 生态 — 基于 Rust + Axum + Sea-ORM + JWT 构建,性能卓越 消息收发和历史记录 用户管理 — 粉丝信息管理 自动回复 — 关键词智能回复 五、技术选型 技术栈 后端技术 技术 说明 版本 Rust 系统开发语言 >= 1.70.0 Axum Web 框架 最新版 Sea-ORM
; Learn More Design Architecture Release Model Change Log https://github.com/SeaQL/sea-orm
如果你喜欢使用 ORM,可以用 diesel,或者 sea-orm。如果你享受直接但安全的 SQL 查询,可以使用 sqlx。
https://www.hikvision.com/en/products/software/hik-proconnect/ [79]SeaORM: https://github.com/SeaQL/sea-orm
tokio-rs/axum [90] perseus: https://github.com/arctic-hen7/perseus [91] SeaORM: https://github.com/SeaQL/sea-orm