摘要: pydantic https://docs.pydantic.dev/latest/concepts/serialization/#modelmodel_dump https://docs.pydantic.dev/latest/api/fields/#pydantic.fields.Compute 阅读全文
posted @ 2024-04-23 17:51 Tank-Li 阅读(4) 评论(0) 推荐(0) 编辑
摘要: SQLAlchemy 是一个 Python 的 ORM(对象关系映射)库,它提供了一种将关系型数据库中的表映射为 Python 对象的方式。在 SQLAlchemy 中,joinedload 和 subqueryload 是两种常用的加载策略,用于优化关联数据的加载方式。 joinedload jo 阅读全文
posted @ 2024-05-14 14:44 Tank-Li 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 网络 前置操作 nmcli con mod "Wired connection 1" ipv4.addresses 192.168.0.201/24 # 设置IP地址 nmcli con mod "Wired connection 1" ipv4.gateway 192.168.0.1 # 设置网关 阅读全文
posted @ 2024-04-13 16:11 Tank-Li 阅读(12) 评论(0) 推荐(0) 编辑
摘要: :443: connect: connection refused docker buildx 指定了配置文件,使用http,但却未生效,它还是使用https load metadata 源数据。 解决方案: 创建 buildx 实例时,指定下版本:--driver-opt image=moby/b 阅读全文
posted @ 2023-10-25 19:21 Tank-Li 阅读(96) 评论(0) 推荐(0) 编辑
摘要: ```bash #3 [internal] load metadata for harbr2.xx.com/xxx:xx #3 ERROR: error getting credentials - err: exit status 1, out: `error getting credentials 阅读全文
posted @ 2023-07-06 11:45 Tank-Li 阅读(422) 评论(0) 推荐(0) 编辑