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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Omen2: Python Database/Object Interface

1 点作者 earonesty超过 3 年前

1 comment

earonesty超过 3 年前
I know this could be seen as &quot;yet another object manager&quot;, and it is. Thing is, I have a real issue with typical object managers and their interaction with an organization.<p>An ORM layer should always serve as your primary object interface, not just a weird way to execute SQL calls, while your real objects do the work.<p>Also, I like my DBA&#x27;s to be DBA&#x27;s: to know everything about how to optimize databases, indexes and to do so with SQL. I don&#x27;t need or want them to be experts at some ORM.<p>omen2 takes a unique approach to object management by generating &quot;convenience code&quot; based on an existing database&#x27;s schema. Also, the codegen layer is completely optional.<p>I&#x27;m not going to claim it&#x27;s done the best possible way, but it&#x27;s good enough for the dozen or so databases we&#x27;re using it for, and it&#x27;s makes far fewer assumptions and has no built-in limitations.<p>omen2 allows a full separation between marshalling, serialization and databased design.