Skip to content

Commit

Permalink
services/horizon: Remove legacy ingest database backend (#5162)
Browse files Browse the repository at this point in the history
* remove legacy ingest backend

* Delete hash_order_test.go

* Update ledger_backend.go

* Update main.go
  • Loading branch information
aditya1702 authored Feb 20, 2024
1 parent 1b0aa07 commit 88206d2
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 791 deletions.
16 changes: 3 additions & 13 deletions ingest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,17 @@ From a high level, the ingestion library is broken down into a few modular compo
[ Ledger Backend ]
|
one of...
|
--------|-----+------|----------|
| | | |
Captive Database Remote etc.
Core Captive
Core
Captive
Core
```

This is described in a little more detail in [`doc.go`](./doc.go), its accompanying examples, the documentation within this package, and the rest of this tutorial.



# Hello, World!
As is tradition, we'll start with a simplistic example that ingests a single ledger from the network. We're immediately faced with a decision, though: _What's the backend?_ We'll use a **Captive Stellar-Core backend** in this example because it requires (little-to-)no setup, but there are couple of alternatives available. You could also use:

- a **database** (via `NewDatabaseBackend()`), which would ingest ledgers stored in a Stellar-Core database, or

- a **remote Captive Core** instance (via `NewRemoteCaptive()`), which works much like Captive Core, but points to an instance that isn't (necessarily) running locally.

With that in mind, here's a minimalist example of the ingestion library:
As is tradition, we'll start with a simplistic example that ingests a single ledger from the network. We'll use the **Captive Stellar-Core backend** to ingest the ledger:

```go
package main
Expand Down
271 changes: 0 additions & 271 deletions ingest/ledgerbackend/database_backend.go

This file was deleted.

70 changes: 0 additions & 70 deletions ingest/ledgerbackend/hash_order_test.go

This file was deleted.

Loading

0 comments on commit 88206d2

Please sign in to comment.