TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Iceaxe – A modern, fast ORM for Python and Postgres

2 点作者 icyfox7 个月前
Hey HN,<p>I&#x27;ve been writing webapps in Python for 6 years and have been using SQLAlchemy as my ORM for about that same time. As I&#x27;ve recently scaled more products with this stack a few things occurred to me:<p>- It takes really careful session management to avoid idle-in-transaction hanging in the database because objects are still floating around (see: PEP 249 and its prioritization “implicit begin” and “explicit commit”)<p>- Not once have we switched backend databases, we&#x27;ve always stuck with Postgres<p>While it was baking hot in San Francisco a few weekends ago I took a step back to write a ground-up Postgres ORM with modern syntax. It main focuses are typehinted schemas, async support, integrated database migrations, and explicit transaction management. You can certainly do all this with existing solutions but my hope is by making them first class primitives it&#x27;s easier to write correct and performant database code.<p>Give it a try - would love to hear what you think!<p>(More documentation is also at <a href="https:&#x2F;&#x2F;mountaineer.sh&#x2F;iceaxe&#x2F;guides&#x2F;quickstart" rel="nofollow">https:&#x2F;&#x2F;mountaineer.sh&#x2F;iceaxe&#x2F;guides&#x2F;quickstart</a>)

1 comment

odie55337 个月前
How does Iceaxe compare to SQLModel?
评论 #42072297 未加载