Hydra ETL
Build your first job
Hydra DSL2 · Sourcesconnection
Grammar element · sources.<id>.connection

The connection block changes shape with the type

Walk the manifest line by line with Next, then switch the type and watch the block change shape.

sources.yaml7 steps

            
Manifest verdict

No data is read. The parser answers one question: is this block well formed?

✓ Block is valid

What connection is

connection answers one question: how does the engine reach the data? It holds the coordinates and the credentials of a system — a folder, a database server, an HTTP host — and nothing else. It performs no reading, applies no operation, and never contains a row.

It sits inside a source or a destination, beside two other keys. type names the connector that will read it. extract — or load on a destination — says what to read once the connection is established. connection only says where and with what rights.

The three keys of a source block and what each one decides type chooses the connector, connection says how to reach the system, extract says what to read once connected. the manifest what it decides type: csv connection: host · user · delimiter … extract: table: orders.csv chooses reaches picks one of nine connectors a folder, a server, an HTTP host location · identity · scope · format · transport the rows to read inside it connection carries no data and performs no read — only coordinates and rights.
Three keys, three decisions. Only the middle one is about reaching the system.

What it contains

The keys differ from one type to the next, but they always play one of five roles.

  • Location — where the system is. base_path for CSV, file for JSON and Parquet, host and port for databases, base_url for a web API.
  • Identity — who is asking. user and password for databases, the auth block — type, token — for a web API. Always a reference such as ${SECRET:DB_PASSWORD}, never a literal.
  • Scope — which part of the system. database, schema on PostgreSQL, collection on MongoDB.
  • Format — how to decode the bytes. delimiter, encoding, quotechar for CSV.
  • Transport — how to fetch, in several trips. The pagination block for a web API: strategy, cursor_field, page_size.

Two consequences follow. A connector reads only the keys it knows, so a key meant for another type is ignored rather than rejected — a misspelling has no effect and raises no error. And the block is never correct on its own: it is correct for a type.

Close by

0 / 0 on this page