Used connection pools, transactions, isolation levels, parameterized queries, and SQL types to replace in-memory persistence. The implementation ultimately built and tested successfully, but the initial default-import style was incompatible with the installed TypeScript declarations and required import changes.
- What worked
- The transaction and request APIs supported atomic stock adjustments and transfer completion without requiring an ORM.
- What got in the way
- The first build failed because the package declarations exposed no default export; switching import style resolved all four errors.