Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cmd implements the dfetch command-line interface (cobra): the root command and the query, run, queries, tables, and version subcommands.
|
Package cmd implements the dfetch command-line interface (cobra): the root command and the query, run, queries, tables, and version subcommands. |
|
internal
|
|
|
config
Package config loads dfetch's data source configuration.
|
Package config loads dfetch's data source configuration. |
|
engine
Package engine orchestrates a dfetch query: parse the SQL, resolve each referenced schema to a connector, fetch and load each table into a per-request local SQLite database (pushing down as much of the query as is safe), then resolve the original query against it.
|
Package engine orchestrates a dfetch query: parse the SQL, resolve each referenced schema to a connector, fetch and load each table into a per-request local SQLite database (pushing down as much of the query as is safe), then resolve the original query against it. |
|
examples
Package examples renders the runnable query examples in examples.yaml into a Markdown doc's marked example blocks (connectors.md), and is the basis for verifying (examples-check) and running (examples-test) those queries.
|
Package examples renders the runnable query examples in examples.yaml into a Markdown doc's marked example blocks (connectors.md), and is the basis for verifying (examples-check) and running (examples-test) those queries. |
|
localdb
Package localdb manages the per-request local SQLite database that dfetch loads data sources into and resolves the final query against.
|
Package localdb manages the per-request local SQLite database that dfetch loads data sources into and resolves the final query against. |
|
source
Package source defines the data-source abstraction.
|
Package source defines the data-source abstraction. |
|
source/ckan
Package ckan is a dfetch Connector backed by a CKAN portal's Action API (https://docs.ckan.org/en/latest/api/).
|
Package ckan is a dfetch Connector backed by a CKAN portal's Action API (https://docs.ckan.org/en/latest/api/). |
|
source/docker
Package docker is a dfetch Connector backed by the Docker Engine API.
|
Package docker is a dfetch Connector backed by the Docker Engine API. |
|
source/github
Package github is a dfetch Connector backed by the GitHub REST API.
|
Package github is a dfetch Connector backed by the GitHub REST API. |
|
source/jaeger
Package jaeger is a dfetch Connector backed by Jaeger's api_v3 query service.
|
Package jaeger is a dfetch Connector backed by Jaeger's api_v3 query service. |
|
source/postgres
Package postgres is a dfetch Connector backed by a PostgreSQL database over database/sql (jackc/pgx).
|
Package postgres is a dfetch Connector backed by a PostgreSQL database over database/sql (jackc/pgx). |
|
sqlparse
Package sqlparse lexes, parses, and validates the incoming SQL (SQLite syntax) and reports the external tables a query references, so the engine knows which data sources to fetch.
|
Package sqlparse lexes, parses, and validates the incoming SQL (SQLite syntax) and reports the external tables a query references, so the engine knows which data sources to fetch. |
|
telemetry
Package telemetry configures OpenTelemetry tracing for dfetch.
|
Package telemetry configures OpenTelemetry tracing for dfetch. |
|
tools
|
|
|
examples
command
Command examples drives internal/examples: it regenerates the example blocks in a Markdown doc (connectors.md) from examples.yaml (-mode gen), verifies they're in sync (-mode check), or runs every example query against the live services (-mode run).
|
Command examples drives internal/examples: it regenerates the example blocks in a Markdown doc (connectors.md) from examples.yaml (-mode gen), verifies they're in sync (-mode check), or runs every example query against the live services (-mode run). |
Click to show internal directories.
Click to hide internal directories.