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: 0

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