presto

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

README

presto

Usage

source:
  name: presto
  config:
    connection_url: http://user:pass@localhost:8080
    exclude_catalog: memory,system

Inputs

Key Value Example Description
connection_url string http://user:pass@localhost:8080 URL to access the presto server required
exclude_catalog string memory,system This is a comma separated catalog list to exclude from querying data optional

Outputs

Field Sample Value
resource.urn my_catalog.my_database.my_table
resource.name my_table
resource.service presto
schema []Column
Column
Field Sample Value
name total_price
data_type decimal
is_nullable true
description item's total price

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 `mapstructure:"connection_url" validate:"required"`
	Exclude       string `mapstructure:"exclude_catalog"`
}

Config holds the set of configuration options for the extractor

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