Files
zeekay 48e0c71a1d feat: add xorm-compatible engine layer, SQL driver, and naming conventions
Add engine/ package with xorm-compatible Session/Engine API:
- Fluent Where/And/Or/Get/Find/Insert/Update/Delete/Count/Exist
- Composite primary key support (PK type)
- Schema sync via Sync2 (struct → DDL with xorm tag parsing)
- SQL query builder (In/NotIn/Between/Like/Expr)
- Column selection (Cols/AllCols/Omit)
- Transaction support
- Raw SQL execution
- JSON type conversion via standard json.Marshal (fixes xorm whitespace bug)

Add db/sql.go with abstract SQL driver (pgx/v5 backend):
- Full db.DB interface implementation
- Connection pooling, transactions, multi-tenant support
- JSONB entity storage with parameterized $N queries

Add names/ package with naming convention mappers:
- SnakeMapper, SameMapper, PrefixMapper, GonicMapper

75 new tests covering all engine, builder, schema, and naming operations.
2026-02-27 20:30:42 -08:00
..