PAR-313
0
Fold the database/ package away — DDL onto the mappers, wiring into DatabaseModule
Pending ReleaseNormalUnassignedChestShopImprovement
The database/ package (SqliteMyBatis session factory + ChestShopDatabases close-holder) and the schema DDL living as String[] constants in DatabaseModule were both misplaced. Fold: move the CREATE TABLE/ALTER/INDEX DDL onto the AccountMapper/ItemCodeMapper as @Update methods (the mapper owns its table's schema), inline SqliteMyBatis's session-open logic into DatabaseModule as private helpers, simplify ChestShopDatabases to a PooledDataSource close-holder co-located in guice/, and delete the database/ package. ChestShop uses two SQLite files so it can't use the siblings' single-DataSource MyBatisModule, but the wiring now lives in one module like they do.
Resources
- commite276934 Complete the database/ fold: DatabaseModule + mappers + ChestShopDatabases (PAR-313)ParadauxIO/hibernia-economy
- commitb56d6bc Fold the database/ package away: DDL onto the mappers, wiring into DatabaseModule (PAR-313)ParadauxIO/hibernia-economy
Comments
No comments yet.
Activity
- tesks changed status to Status → Pending Release
- ParadauxIO linked a commit — Commit e276934 — Complete the database/ fold: DatabaseModule + mappers + ChestShopDatabases (PAR-313)
- ParadauxIO linked a commit — Commit b56d6bc — Fold the database/ package away: DDL onto the mappers, wiring into DatabaseModule (PAR-313)
- tesks created the issue