Writing raw SQL is error-prone, but full ORMs (like TypeORM) are too heavy for this framework.
Technical Implementation:
- Create a fluent API for constructing SQL queries (e.g.,
db.select('*').from('users').where('id', 1)).
- Support parameter binding to prevent SQL injection.
- Adapters for
pg, mysql2, and better-sqlite3.
Acceptance Criteria:
Writing raw SQL is error-prone, but full ORMs (like TypeORM) are too heavy for this framework.
Technical Implementation:
db.select('*').from('users').where('id', 1)).pg,mysql2, andbetter-sqlite3.Acceptance Criteria: