The ingest
package provides primitives for reading ledger data from Stellar Core and the history archives. Horizon uses the package to ingest every new ledger emitted by the Stellar network into the Horizon database.
For more details on how to use the ingest
package, check out this tutorial.