meta

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnsOutput

type ColumnsOutput struct {
	Data      []sink.Column `json:"data,omitempty"`
	Status    string        `json:"status"`
	Error     string        `json:"error,omitempty"`
	Connector string        `json:"connector,omitempty"`
}

ColumnsOutput wraps column metadata.

type ListColumnsInput

type ListColumnsInput struct {
	// Connector to use.
	Connector string `json:"connector,omitempty"`

	// Catalog/database name (optional).
	Catalog string `json:"catalog,omitempty"`

	// Schema name (optional).
	Schema string `json:"schema,omitempty"`

	// Table for which columns should be listed.
	Table string `json:"table"`
}

ListColumnsInput defines parameters for retrieving column metadata of a table.

type ListTablesInput

type ListTablesInput struct {
	// Connector name registered in the toolbox.
	Connector string `json:"connector,omitempty"`

	// Catalog/database name (optional).
	Catalog string `json:"catalog,omitempty"`

	// Schema name (optional – defaults depend on the driver).
	Schema string `json:"schema,omitempty"`
}

ListTablesInput defines parameters for retrieving table metadata.

type Service

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

Service provides metadata listing capabilities.

func New

func New(connectors *connector.Service) *Service

New creates a metadata service instance.

func (*Service) ListColumns

func (s *Service) ListColumns(ctx context.Context, input *ListColumnsInput) *ColumnsOutput

ListColumns returns column metadata for the specified table.

func (*Service) ListTables

func (s *Service) ListTables(ctx context.Context, input *ListTablesInput) *TablesOutput

ListTables returns tables available in the specified catalog/schema.

type TablesOutput

type TablesOutput struct {
	Data      []sink.Table `json:"data,omitempty"`
	Status    string       `json:"status"`
	Error     string       `json:"error,omitempty"`
	Connector string       `json:"connector,omitempty"`
}

TablesOutput wraps table metadata.

Jump to

Keyboard shortcuts

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