mirror of
https://github.com/hanzoai/orm.git
synced 2026-10-30 15:01:22 +00:00
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.