MetalORM: A new Flexible, Type-Safe SQL Toolkit for TypeScript with Optional ORM Layers
reddit.com·5w·
Discuss: r/typescript
DataFusion
Preview
Report Post

I built MetalORM, a TypeScript-first SQL toolkit that's designed to be as ORM-y as you need it to be. It starts as a powerful query builder and can layer up to full entity management, all while staying type-safe and AST-driven.

What is MetalORM?

MetalORM compiles SQL from a typed AST, supporting multiple dialects (MySQL, PostgreSQL, SQLite, SQL Server). You can use it at three levels:

  1. Query Builder & Hydration: Define tables with defineTable, build typed queries, and hydrate flat results into nested objects. Perfect for when you just need strong SQL without runtime overhead.

  2. ORM Runtime (Entities + Unit of Work): Add OrmSession for entity tra...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help