© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Database-agnostic boolean fields in Model.Class - Effect Community
EC
Effect Community
•
3h ago
•
1 reply
DomiR
Database-agnostic boolean fields in Model.Class
Is there a way to build database agnostic Models
. E
.g
. when I want to use a boolean in
Model.Class
Model.Class
I have to decide if I use
Schema.Boolean
Schema.Boolean
for postgres or
Model.BooleanSqlite
Model.BooleanSqlite
for sqlite
. What is the best approach here
? Just use numbers for postgres
?
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Reusing and Overriding Schema Fields in SQL Model with Model Wrappers
EC
Effect Community / sql
8mo ago
Type Error When Accessing Model Fields
EC
Effect Community / sql
2y ago
Lack of `extend` in `Model` classes - Intentional?
EC
Effect Community / sql
13mo ago
Using Model.Class and Model.makeRepository with Effect's Drizzle Integration
EC
Effect Community / sql
10mo ago