Documentation
¶
Overview ¶
etl runs the ETL indexer against an RPC endpoint and a local Postgres.
It creates all necessary tables via migrations, then indexes blocks and prints each transaction's payload before processing and a completion message after.
Against production (valid TLS, polling):
go run ./examples/etl \ --rpc https://core.audius.co \ --db "postgres://localhost:5432/etl_local?sslmode=disable"
Against the local devnet over the gRPC block stream (node1's h2c port):
go run ./examples/etl \ --rpc http://localhost:50051 \ --db "postgres://etl:etl@localhost:5454/etl?sslmode=disable" \ --stream
Or exercise the nginx 443 path (self-signed TLS) with --insecure:
go run ./examples/etl --rpc https://node1.oap.devnet --db ... --stream --insecure
Environment variables ETL_RPC_URL and ETL_DB_URL are used as fallbacks.
Click to show internal directories.
Click to hide internal directories.