presto

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

README

PrestoDB

Extract table metadata from a Presto server.

Usage

source:
  name: presto
  config:
    connection_url: http://user:pass@localhost:8080
    exclude:
      catalogs:
        - memory
        - system
        - tpcds
        - tpch

Configuration

Key Type Required Description
connection_url string Yes HTTP URL to access the Presto server.
exclude.catalogs []string No List of catalog names to exclude.

Entities

  • Entity type: table
  • URN format: urn:presto:{scope}:table:{catalog}.{schema}.{table}
Property Type Description
properties.columns []object List of column objects.
properties.columns[].name string Column name.
properties.columns[].data_type string Column data type.
properties.columns[].is_nullable bool Whether the column is nullable.
properties.columns[].description string Column comment (if available).

Edges

This extractor does not emit edges.

Contributing

Refer to the contribution guidelines for information on contributing to this module.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConnectionURL string  `json:"connection_url" yaml:"connection_url" mapstructure:"connection_url" validate:"required"`
	Exclude       Exclude `json:"exclude" yaml:"exclude" mapstructure:"exclude"`
}

Config holds the set of configuration options for the extractor

type Exclude added in v0.13.0

type Exclude struct {
	Catalogs []string `json:"catalogs" yaml:"catalogs" mapstructure:"catalogs"`
}

Exclude contains the list of catalogs to skip during extraction.

type Extractor

type Extractor struct {
	plugins.BaseExtractor
	// contains filtered or unexported fields
}

Extractor manages the extraction of data

func New

func New(logger log.Logger) *Extractor

New returns a pointer to an initialized Extractor Object

func (*Extractor) Extract

func (e *Extractor) Extract(ctx context.Context, emit plugins.Emit) error

Extract collects metadata of the database through emitter

func (*Extractor) Init

func (e *Extractor) Init(ctx context.Context, config plugins.Config) (err error)

Init initializes the extractor

Jump to

Keyboard shortcuts

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