github

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package github is a dfetch Connector backed by the GitHub REST API. It exposes the issues, pulls, repos, commits, releases, workflow_runs, and artifacts tables under the SQL schema "github" and pushes down equality filters, ORDER BY, and LIMIT to the API where it can.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params map[string]any) (source.Connector, error)

New builds a GitHub connector. Supported params: "base_url" (override the API host, used in tests/Enterprise) and "token_command" (fallback argv used to fetch a token when $GITHUB_TOKEN / $GH_TOKEN are unset).

Types

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector talks to the GitHub REST API.

func (*Connector) Scan

func (c *Connector) Scan(ctx context.Context, req source.ScanRequest, emit func(*source.Rows) error) error

Scan dispatches to the per-table fetchers, which emit one chunk per API page.

func (*Connector) Tables

func (c *Connector) Tables() []source.TableSchema

Tables returns the schemas of the github.* tables.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL