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.
No data is read. The parser answers one question: is this block well formed?
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.
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_pathfor CSV,filefor JSON and Parquet,hostandportfor databases,base_urlfor a web API. -
Identity — who is asking.
userandpasswordfor databases, theauthblock —type,token— for a web API. Always a reference such as${SECRET:DB_PASSWORD}, never a literal. -
Scope — which part of the system.
database,schemaon PostgreSQL,collectionon MongoDB. -
Format — how to decode the bytes.
delimiter,encoding,quotecharfor CSV. -
Transport — how to fetch, in several trips.
The
paginationblock 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.