This commit is contained in:
2025-12-27 11:44:50 +08:00
commit ccd43fac1f
1193 changed files with 384161 additions and 0 deletions
@@ -0,0 +1,26 @@
{
"nodes": [
{
"id": "99fde84233fe9f43",
"type": "text",
"text": "Rust ORM框架对比\n### SeaORM vs Diesel\n\n为Rust项目选择合适的ORM需要仔细考虑各种因素。\n\nSeaORM和Diesel都提供了出色的性能,充分利用Rust的优势来优化数据库交互。SeaORM侧重于简单性和直观的API设计,而Diesel注重编译时检查和安全性。\n\n下面的表格比较了两种ORM的特性和功能:\n\n![](https://pics1.baidu.com/feed/6f061d950a7b0208699891e09e118bdf562cc8b7.jpeg@f_auto?token=f8a22dee6351daed767ff9ff4f0dd92d)\n\n在Diesel和SeaORM之间进行选择取决于您的项目规格。Diesel已建立了社区支持,并因其强大的特性和性能而受到青睐。如果您注重编译时检查、安全性和简单性,那么Diesel很合适。\n\n另一方面,SeaORM是新颖的,在不断扩展,它支持更多的SQL数据库引擎和懒加载。如果您注重直观的API设计和生产力,SeaORM可能更合适。\n\n这两种ORM都支持查询、模式迁移和编译时检查。在做出决定之前,请考虑您在使用的数据库管理系统和项目的大小。\n",
"styleAttributes": {},
"x": -273,
"y": -450,
"width": 1059,
"height": 900
},
{
"id": "33ad3e2723eab64b",
"type": "text",
"text": "Rust异步框架-tokio [资料](https://tokio-zh.github.io/document/getting-started/echo.html)\nWeb服务套件-axum [资料](https://www.cnblogs.com/yjmyzz/category/2085128.html)\n[Debug rust in vscode](https://zhuanlan.zhihu.com/p/350647994)",
"styleAttributes": {},
"x": -785,
"y": -450,
"width": 473,
"height": 125
}
],
"edges": [],
"metadata": {}
}