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) GetType ¶
func (s *SinkPlugin) GetType() sinks.SinkDriver
func (*SinkPlugin) SetExpectedSchema ¶
func (s *SinkPlugin) SetExpectedSchema(schema []schema.StreamSchema)
func (*SinkPlugin) Stop ¶
func (s *SinkPlugin) Stop()
type StatementType ¶
type StatementType string
Click to show internal directories.
Click to hide internal directories.