Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.6.0
type Config struct {
sdk.DefaultDestinationMiddleware
// URL is the connection string for the Postgres database.
URL string `json:"url" validate:"required"`
// Table is used as the target table into which records are inserted.
Table string `json:"table" default:"{{ index .Metadata \"opencdc.collection\" }}"`
// Key represents the column name for the key used to identify and update existing rows.
Key string `json:"key"`
}
func (*Config) TableFunction ¶ added in v0.7.0
TableFunction returns a function that determines the table for each record individually. The function might be returning a static table name. If the table is neither static nor a template, an error is returned.
Click to show internal directories.
Click to hide internal directories.