postgres

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeleteStatement = "delete"
View Source
var InsertStatement = "insert"
View Source
var UpdateStatement = "update"

Functions

func NewPostgresSinkPlugin

func NewPostgresSinkPlugin(config Config, schema []schema.StreamSchema, appctx *stream_context.Context) sinks.DataSink

Types

type Config

type Config struct {
	Host         string `json:"host" yaml:"host"`
	Port         int    `json:"port" yaml:"port"`
	Database     string `json:"database" yaml:"database"`
	User         string `json:"user" yaml:"user"`
	Schema       string `json:"schema" yaml:"schema"`
	Password     string `json:"password" yaml:"password"`
	SSLRequired  bool   `json:"ssl_required" yaml:"ssl_required"`
	StreamPrefix string `json:"stream_prefix" yaml:"stream_prefix"`
}

type SinkPlugin

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

func (*SinkPlugin) Connect

func (s *SinkPlugin) Connect(context context.Context) error

func (*SinkPlugin) GetType

func (s *SinkPlugin) GetType() sinks.SinkDriver

func (*SinkPlugin) SetExpectedSchema

func (s *SinkPlugin) SetExpectedSchema(schema []schema.StreamSchema)

func (*SinkPlugin) Stop

func (s *SinkPlugin) Stop()

func (*SinkPlugin) Write

func (s *SinkPlugin) Write(m *message.Message) error

type StatementType

type StatementType string

Jump to

Keyboard shortcuts

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