First release.
transferenciasespeciais), fund-to-fund transfers
(fundoafundo) and decentralized credit (ted) —
and the forty-eight tables they publish.tg_get() and tg_count() query any table;
tg_ted(), tg_fundo_a_fundo() and
tg_transferencias_especiais() fix the module.tg_operators() lists the fifteen comparison operators the
services accept. Operators are evaluated in their own mask, so they work
regardless of what the user has attached.tg_modules(), tg_tables() and
tg_fields() describe the APIs offline, from a copy of their
OpenAPI documents frozen into the package and rebuilt by
data-raw/schema.R.bigint columns are returned as double, because a value
beyond .Machine$integer.max would become NA as
an integer..limit asks for, in
pages of at most 1000 — the service’s own cap, which it applies
silently. Every request carries an explicit order, so pages cannot
overlap or skip rows, and the number collected is checked against the
total the API reports.tg_metadata() records the total the API reported, the
rows and pages retrieved, the order and selection used, and whether the
result was cached.tg_cache_dir() switches to a
persistent location and tg_cache_clear() empties it.tg_tables(counts = TRUE) reports how many rows each
table currently holds, so sizing every table is one call rather than a
loop over tg_count(). It is the only part of that function
that needs a network connection.in_() over a
long vector. curl otherwise reports “Error in the HTTP2 framing layer”,
which says nothing about the query.