chapter six
6 Storing our ACH files
This chapter covers
- Creating tables within our PostgreSQL database
- Designing a relational database capable of storing ACH files
- Using Python and Pydantic to validate our ACH records and store them in our database
- Ensuring our records are parsed and stored correctly by unit testing with pytest
Databases store and persist our data across application instances while providing a way to query and ensure the integrity of that data. In this chapter, we dive into what it will take to store our ACH files in a database. After our initial analysis we then work on expanding our APIs to allow storing an ACH file into the database. Continuing along that track we expand our parsers to store the individual fields as well. Finally, we wrap up the chapter by examining the impact of storing ACH data has on our unit and load tests.