sqlproc

package
v1.16.9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64FromBytes

func Float64FromBytes(bytes []byte) float64

func Int64FromBytes

func Int64FromBytes(bytes []byte) int64

Types

type Config

type Config struct {
	Query string `json:"query" yaml:"query"`
}

type Plugin

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

func NewSqlTransformPlugin

func NewSqlTransformPlugin(appctx *stream_context.Context, config Config) (*Plugin, error)

func (*Plugin) EvolveSchema

func (p *Plugin) EvolveSchema(streamSchema *schema.StreamSchemaObj) error

EvolveSchema will add a string column to the schema in order to match the result to SQL statement

func (*Plugin) Process

func (p *Plugin) Process(context context.Context, msg *message.Message) (*message.Message, error)

Jump to

Keyboard shortcuts

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